Skip to content

Commit

Permalink
PHPDoc fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmyoak committed Sep 21, 2015
1 parent 3a5161c commit 770c23b
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 24 deletions.
5 changes: 0 additions & 5 deletions src/Collection/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ class Collection implements \ArrayAccess, \Countable, \IteratorAggregate
/** @var array */
protected $collection = [];

/**
* @param mixed $offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->collection[$offset]);
Expand Down
17 changes: 15 additions & 2 deletions src/Collection/TypedCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,32 @@

class TypedCollection extends Collection
{
/** @var string */
/**
* @var string
*/
private $objectType;

/**
* @param string $objectType
*/
public function __construct($objectType)
{
$this->objectType = $objectType;
$this->setObjectType($objectType);
}

/**
* @return string
*/
public function getObjectType()
{
return $this->objectType;
}

/**
* @param string $objectType
*
* @return $this
*/
protected function setObjectType($objectType)
{
$this->objectType = $objectType;
Expand Down
3 changes: 0 additions & 3 deletions src/DataType/Enum.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ public static function getConstList()
return $constants[static::class];
}

/**
* @param $value
*/
private function guardAgainstValueNotInValidConstants($value)
{
if (!in_array($value, self::getConstList(), true)) {
Expand Down
5 changes: 0 additions & 5 deletions src/Utility/FileUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,6 @@ public function extensionIs($fileName, $extension)
return preg_match('/\.' . $extensionPregQuoted . '$/i', $fileName) > 0;
}

/**
* @param $path
*
* @return string
*/
private function stripPathLastDirectorySeparator($path)
{
$pathLength = strlen($path);
Expand Down
5 changes: 0 additions & 5 deletions src/Utility/ObjectUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,6 @@ private function toDeepArray($object)
return $array;
}

/**
* @param $object
*
* @return array
*/
private function toShallowArray($object)
{
$array = [];
Expand Down
19 changes: 15 additions & 4 deletions src/Utility/Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,24 @@

class Utils extends UtilsBase
{
/** @var ArrayUtils */
/**
* @var ArrayUtils
*/
public $array;
/** @var FileUtils */

/**
* @var FileUtils
*/
public $file;
/** @var ObjectUtils */

/**
* @var ObjectUtils
*/
public $object;
/** @var StringUtils */

/**
* @var StringUtils
*/
public $string;

protected function __construct()
Expand Down

0 comments on commit 770c23b

Please sign in to comment.