Flake\Core\Collection::push PHP Метод

push() публичный Метод

public push ( &$mMixed )
    function push(&$mMixed)
    {
        array_push($this->aCollection, $mMixed);
    }

Usage Example

Пример #1
0
 function push(&$mMixed)
 {
     if (!\Flake\Util\Tools::is_a($mMixed, $this->sTypeClassOrProtocol)) {
         throw new \Exception("\\Flake\\Core\\CollectionTyped<" . $this->sTypeClassOrProtocol . ">: Given object is not correctly typed.");
     }
     parent::push($mMixed);
 }