Flake\Core\Collection::push PHP Method

push() public method

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

Usage Example

Esempio n. 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);
 }