Skip to content

Commit

Permalink
add constructor back to trait for 0.8.2 - remove in 0.8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
electricjones committed Jun 5, 2015
1 parent 17eb6f5 commit 6edda3c
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 43 deletions.
15 changes: 0 additions & 15 deletions src/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,6 @@ class Manager implements
{
use ManagesItemsTrait, ChainsNestedItemsTrait;

/**
* The items stored in the manager
* @var array $items Items governed by manager
*/
protected $items;

/**
* Build a new manager instance
* @param array $items
*/
public function __construct($items = [])
{
$this->initManager($items);
}

/**
* @implements ArrayAccess
*/
Expand Down
15 changes: 15 additions & 0 deletions src/Traits/ManagesItemsTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,21 @@
*/
trait ManagesItemsTrait
{
/**
* The items stored in the manager
* @var array $items Items governed by manager
*/
protected $items;

/**
* Build a new manager instance
* @param array $items
*/
public function __construct($items = [])
{
$this->initManager($items);
}

/**
* Initializes a new manager instance.
*
Expand Down
14 changes: 0 additions & 14 deletions tests/Stubs/ChainsNestedItemsTraitStub.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,4 @@ class ChainsNestedItemsTraitStub
{
use ManagesItemsTrait, ChainsNestedItemsTrait;

/**
* The items stored in the manager
* @var array $items Items governed by manager
*/
protected $items;

/**
* Build a new manager instance
* @param array $items
*/
public function __construct($items = [])
{
$this->initManager($items);
}
}
14 changes: 0 additions & 14 deletions tests/Stubs/ManagesItemsTraitStub.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,4 @@ class ManagesItemsTraitStub
{
use ManagesItemsTrait;

/**
* The items stored in the manager
* @var array $items Items governed by manager
*/
protected $items;

/**
* Build a new manager instance
* @param array $items
*/
public function __construct($items = [])
{
$this->initManager($items);
}
}

0 comments on commit 6edda3c

Please sign in to comment.