Skip to content

Commit

Permalink
update phpdocs
Browse files Browse the repository at this point in the history
  • Loading branch information
electricjones committed Jun 24, 2015
1 parent 089b123 commit 7f402a1
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/Traits/ManagesItemsTrait.php
Expand Up @@ -14,8 +14,14 @@
*/
trait ManagesItemsTrait
{
/**
* Name of the property to hold the data items. Internal use only
* @var string
*/
protected $nameOfItemsRepository = 'items';

/* The user may also set $dataItemsName */

/**
* Initializes a new manager instance.
*
Expand Down Expand Up @@ -253,14 +259,24 @@ public function isEmpty()
return empty($this->$repo);
}

/**
* Returns the name of the property that holds data items
* @return string
*/
public function getItemsName()
{
return $this->nameOfItemsRepository;
}

/**
* Sets the name of the property that holds data items
* @param $nameOfItemsRepository
* @return $this
*/
public function setItemsName($nameOfItemsRepository)
{
$this->nameOfItemsRepository = $nameOfItemsRepository;
return $this;
}

/**
Expand Down

0 comments on commit 7f402a1

Please sign in to comment.