Phulp\Collection::checkType PHP Метод

checkType() защищенный Метод

Checks the immutability of the elements type
protected checkType ( $item ) : boolean
Результат boolean
    protected function checkType($item)
    {
        $type = $this->getItemType($item);
        if (!$this->type) {
            $this->type = $type;
            return true;
        }
        if ($this->type != $type) {
            return false;
        }
        return true;
    }