chore: Аннотации к типам
This commit is contained in:
parent
730a608f9b
commit
89913de4fe
19 changed files with 124 additions and 24 deletions
|
|
@ -8,12 +8,21 @@ namespace ctiso;
|
|||
*/
|
||||
class Adapter
|
||||
{
|
||||
/** @var array|object */
|
||||
protected $adaptee;
|
||||
|
||||
/**
|
||||
* @param array|object $adaptee
|
||||
*/
|
||||
public function __construct ($adaptee)
|
||||
{
|
||||
$this->adaptee = $adaptee;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $name
|
||||
* @return mixed
|
||||
*/
|
||||
public function get($name)
|
||||
{
|
||||
if (is_array ($this->adaptee)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue