Skip to content

Commit

Permalink
Update PHPDoc.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Sep 3, 2019
1 parent 898a3b1 commit 16166ea
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions src/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ public function all(): array

/**
* {@inheritdoc}
*
* @return \drupol\collection\Contract\Collection
*/
public function append(...$items): BaseInterface
{
Expand All @@ -67,6 +69,8 @@ public function append(...$items): BaseInterface

/**
* {@inheritdoc}
*
* @return \drupol\collection\Contract\Collection
*/
public function apply(callable ...$callables): BaseInterface
{
Expand All @@ -75,6 +79,8 @@ public function apply(callable ...$callables): BaseInterface

/**
* {@inheritdoc}
*
* @return \drupol\collection\Contract\Collection
*/
public function chunk(int $size): BaseInterface
{
Expand All @@ -83,6 +89,8 @@ public function chunk(int $size): BaseInterface

/**
* {@inheritdoc}
*
* @return \drupol\collection\Contract\Collection
*/
public function collapse(): BaseInterface
{
Expand All @@ -91,6 +99,8 @@ public function collapse(): BaseInterface

/**
* {@inheritdoc}
*
* @return \drupol\collection\Contract\Collection
*/
public function combine($keys): BaseInterface
{
Expand Down Expand Up @@ -135,6 +145,8 @@ public static function empty(): CollectionInterface

/**
* {@inheritdoc}
*
* @return \drupol\collection\Contract\Collection
*/
public function filter(callable ...$callbacks): BaseInterface
{
Expand All @@ -151,6 +163,8 @@ public function first(callable $callback = null, $default = null)

/**
* {@inheritdoc}
*
* @return \drupol\collection\Contract\Collection
*/
public function flatten(int $depth = \PHP_INT_MAX): BaseInterface
{
Expand All @@ -159,6 +173,8 @@ public function flatten(int $depth = \PHP_INT_MAX): BaseInterface

/**
* {@inheritdoc}
*
* @return \drupol\collection\Contract\Collection
*/
public function flip(): BaseInterface
{
Expand All @@ -167,6 +183,8 @@ public function flip(): BaseInterface

/**
* {@inheritdoc}
*
* @return \drupol\collection\Contract\Collection
*/
public function forget(...$keys): BaseInterface
{
Expand All @@ -191,6 +209,8 @@ public function implode(string $implode = ''): string

/**
* {@inheritdoc}
*
* @return \drupol\collection\Contract\Collection
*/
public function intersperse($element, int $every = 1, int $startAt = 0): BaseInterface
{
Expand All @@ -199,6 +219,8 @@ public function intersperse($element, int $every = 1, int $startAt = 0): BaseInt

/**
* {@inheritdoc}
*
* @return \drupol\collection\Contract\Collection
*/
public static function iterate(callable $callback, ...$parameters): CollectionInterface
{
Expand All @@ -215,6 +237,8 @@ static function () use ($parameters, $callback) {

/**
* {@inheritdoc}
*
* @return \drupol\collection\Contract\Collection
*/
public function keys(): BaseInterface
{
Expand All @@ -231,6 +255,8 @@ public function last()

/**
* {@inheritdoc}
*
* @return \drupol\collection\Contract\Collection
*/
public function limit(int $limit): BaseInterface
{
Expand All @@ -239,6 +265,8 @@ public function limit(int $limit): BaseInterface

/**
* {@inheritdoc}
*
* @return \drupol\collection\Contract\Collection
*/
public function map(callable ...$callbacks): BaseInterface
{
Expand All @@ -247,6 +275,8 @@ public function map(callable ...$callbacks): BaseInterface

/**
* {@inheritdoc}
*
* @return \drupol\collection\Contract\Collection
*/
public function merge(...$sources): BaseInterface
{
Expand All @@ -255,6 +285,8 @@ public function merge(...$sources): BaseInterface

/**
* {@inheritdoc}
*
* @return \drupol\collection\Contract\Collection
*/
public function normalize(): BaseInterface
{
Expand All @@ -263,6 +295,8 @@ public function normalize(): BaseInterface

/**
* {@inheritdoc}
*
* @return \drupol\collection\Contract\Collection
*/
public function nth(int $step, int $offset = 0): BaseInterface
{
Expand All @@ -271,6 +305,8 @@ public function nth(int $step, int $offset = 0): BaseInterface

/**
* {@inheritdoc}
*
* @return \drupol\collection\Contract\Collection
*/
public function only(...$keys): BaseInterface
{
Expand All @@ -279,6 +315,8 @@ public function only(...$keys): BaseInterface

/**
* {@inheritdoc}
*
* @return \drupol\collection\Contract\Collection
*/
public function pad(int $size, $value): BaseInterface
{
Expand All @@ -287,6 +325,8 @@ public function pad(int $size, $value): BaseInterface

/**
* {@inheritdoc}
*
* @return \drupol\collection\Contract\Collection
*/
public function pluck($pluck, $default = null): BaseInterface
{
Expand All @@ -295,6 +335,8 @@ public function pluck($pluck, $default = null): BaseInterface

/**
* {@inheritdoc}
*
* @return \drupol\collection\Contract\Collection
*/
public function prepend(...$items): BaseInterface
{
Expand All @@ -303,6 +345,8 @@ public function prepend(...$items): BaseInterface

/**
* {@inheritdoc}
*
* @return \drupol\collection\Contract\Collection
*/
public static function range(int $start = 0, $end = \INF, $step = 1): CollectionInterface
{
Expand All @@ -311,6 +355,8 @@ public static function range(int $start = 0, $end = \INF, $step = 1): Collection

/**
* {@inheritdoc}
*
* @return \drupol\collection\Contract\Collection
*/
public function rebase(): BaseInterface
{
Expand All @@ -327,6 +373,8 @@ public function reduce(callable $callback, $initial = null)

/**
* {@inheritdoc}
*
* @return \drupol\collection\Contract\Collection
*/
public function reduction(callable $callback, $initial = null): BaseInterface
{
Expand All @@ -349,6 +397,8 @@ public function rsample($probability): BaseInterface

/**
* {@inheritdoc}
*
* @return \drupol\collection\Contract\Collection
*/
public function skip(int ...$counts): BaseInterface
{
Expand All @@ -357,6 +407,8 @@ public function skip(int ...$counts): BaseInterface

/**
* {@inheritdoc}
*
* @return \drupol\collection\Contract\Collection
*/
public function slice(int $offset, int $length = null): BaseInterface
{
Expand All @@ -365,6 +417,8 @@ public function slice(int $offset, int $length = null): BaseInterface

/**
* {@inheritdoc}
*
* @return \drupol\collection\Contract\Collection
*/
public function sort(callable $callback): BaseInterface
{
Expand All @@ -373,6 +427,8 @@ public function sort(callable $callback): BaseInterface

/**
* {@inheritdoc}
*
* @return \drupol\collection\Contract\Collection
*/
public static function times($number, callable $callback = null): CollectionInterface
{
Expand All @@ -393,6 +449,8 @@ static function () use ($number) {

/**
* {@inheritdoc}
*
* @return \drupol\collection\Contract\Collection
*/
public function walk(callable ...$callbacks): BaseInterface
{
Expand All @@ -411,6 +469,8 @@ public static function with($data = []): BaseInterface

/**
* {@inheritdoc}
*
* @return \drupol\collection\Contract\Collection
*/
public function zip(...$items): BaseInterface
{
Expand Down

0 comments on commit 16166ea

Please sign in to comment.