Flake\Core\CollectionTyped::push PHP Method

push() public method

public push ( &$mMixed )
    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);
    }