Library/FunctionLike/ReturnType/Collection.php
public function onlySpecial()
    {
        if (0 == $this->count()) {
            return false;
        }

        $found = $this->getTypesBySpecification(new Specification\IsSpecial());

        return \count($found) == $this->count();
    }
public function onlySpecial()
    {
        if (0 == $this->count()) {
            return false;
        }

        $found = $this->getTypesBySpecification(new Specification\IsSpecial());

        return \count($found) == $this->count();
    }
public function onlySpecial ( ) { if ( 0 == $ this -> count ( ) ) { return false ; } $ found = $ this -> getTypesBySpecification ( new Specification \ IsSpecial ( ) ) ; return \ count ( $ found ) == $ this -> count ( ) ; }
Checks if the collection has only special types.
Checks if the collection has only special types .