Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Converted the docblocks of ArrayCollection to short type hints #126

Merged
merged 2 commits into from
Jul 21, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/Doctrine/Common/Collections/AbstractLazyCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ abstract class AbstractLazyCollection implements Collection
protected $collection;

/**
* @var boolean
* @var bool
*/
protected $initialized = false;

Expand Down
26 changes: 13 additions & 13 deletions lib/Doctrine/Common/Collections/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ interface Collection extends Countable, IteratorAggregate, ArrayAccess
*
* @param mixed $element The element to add.
*
* @return boolean Always TRUE.
* @return bool Always TRUE.
*/
public function add($element);

Expand All @@ -70,21 +70,21 @@ public function clear();
*
* @param mixed $element The element to search for.
*
* @return boolean TRUE if the collection contains the element, FALSE otherwise.
* @return bool TRUE if the collection contains the element, FALSE otherwise.
*/
public function contains($element);

/**
* Checks whether the collection is empty (contains no elements).
*
* @return boolean TRUE if the collection is empty, FALSE otherwise.
* @return bool TRUE if the collection is empty, FALSE otherwise.
*/
public function isEmpty();

/**
* Removes the element at the specified index from the collection.
*
* @param string|integer $key The kex/index of the element to remove.
* @param string|int $key The kex/index of the element to remove.
*
* @return mixed The removed element or NULL, if the collection did not contain the element.
*/
Expand All @@ -95,24 +95,24 @@ public function remove($key);
*
* @param mixed $element The element to remove.
*
* @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
* @return bool TRUE if this collection contained the specified element, FALSE otherwise.
*/
public function removeElement($element);

/**
* Checks whether the collection contains an element with the specified key/index.
*
* @param string|integer $key The key/index to check for.
* @param string|int $key The key/index to check for.
*
* @return boolean TRUE if the collection contains an element with the specified key/index,
* FALSE otherwise.
* @return bool TRUE if the collection contains an element with the specified key/index,
* FALSE otherwise.
*/
public function containsKey($key);

/**
* Gets the element at the specified key/index.
*
* @param string|integer $key The key/index of the element to retrieve.
* @param string|int $key The key/index of the element to retrieve.
*
* @return mixed
*/
Expand All @@ -137,8 +137,8 @@ public function getValues();
/**
* Sets an element in the collection at the specified key/index.
*
* @param string|integer $key The key/index of the element to set.
* @param mixed $value The element to set.
* @param string|int $key The key/index of the element to set.
* @param mixed $value The element to set.
*
* @return void
*/
Expand Down Expand Up @@ -191,7 +191,7 @@ public function next();
*
* @param Closure $p The predicate.
*
* @return boolean TRUE if the predicate is TRUE for at least one element, FALSE otherwise.
* @return bool TRUE if the predicate is TRUE for at least one element, FALSE otherwise.
*/
public function exists(Closure $p);

Expand All @@ -210,7 +210,7 @@ public function filter(Closure $p);
*
* @param Closure $p The predicate.
*
* @return boolean TRUE, if the predicate yields TRUE for all elements, FALSE otherwise.
* @return bool TRUE, if the predicate yields TRUE for all elements, FALSE otherwise.
*/
public function forAll(Closure $p);

Expand Down