chore: Аннотации к типам
This commit is contained in:
parent
730a608f9b
commit
89913de4fe
19 changed files with 124 additions and 24 deletions
|
|
@ -72,6 +72,11 @@ class Collection implements \ArrayAccess
|
|||
return (string)$this->get($key, $default);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $key
|
||||
* @param int $default
|
||||
* @return int
|
||||
*/
|
||||
public function getNat($key, $default = 1)
|
||||
{
|
||||
$result = (int)$this->get($key, $default);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue