Library/FunctionLike/ReturnType/Collection.php
public function areReturnTypesWellKnown()
    {
        if (0 == $this->count() || $this->isSatisfiedByTypeSpec(new Specification\IsSpecial())) {
            return false;
        }

        $spec =
            (new Specification\ObjectLike())
            ->either(new Specification\ArrayCompatible())
            ->either(new Specification\IntCompatible())
            ->either(new Specification\StringCompatible())
            ->either(new Specification\IsBool())
            ->either(new Specification\IsDouble())
            ->either(new Specification\IsNull())
            // TODO: Please double check this
            ->either(new Specification\IsVoid());

        $found = $this->getTypesBySpecification($spec);

        return \count($found) == $this->count();
    }
public function areReturnTypesWellKnown()
    {
        if (0 == $this->count() || $this->isSatisfiedByTypeSpec(new Specification\IsSpecial())) {
            return false;
        }

        $spec =
            (new Specification\ObjectLike())
            ->either(new Specification\ArrayCompatible())
            ->either(new Specification\IntCompatible())
            ->either(new Specification\StringCompatible())
            ->either(new Specification\IsBool())
            ->either(new Specification\IsDouble())
            ->either(new Specification\IsNull())
            // TODO: Please double check this
            ->either(new Specification\IsVoid());

        $found = $this->getTypesBySpecification($spec);

        return \count($found) == $this->count();
    }
public function areReturnTypesWellKnown ( ) { if ( 0 == $ this -> count ( ) || $ this -> isSatisfiedByTypeSpec ( new Specification \ IsSpecial ( ) ) ) { return false ; } $ spec = ( new Specification \ ObjectLike ( ) ) -> either ( new Specification \ ArrayCompatible ( ) ) -> either ( new Specification \ IntCompatible ( ) ) -> either ( new Specification \ StringCompatible ( ) ) -> either ( new Specification \ IsBool ( ) ) -> either ( new Specification \ IsDouble ( ) ) -> either ( new Specification \ IsNull ( ) ) // TODO: Please double check this -> either ( new Specification \ IsVoid ( ) ) ; $ found = $ this -> getTypesBySpecification ( $ spec ) ; return \ count ( $ found ) == $ this -> count ( ) ; }
Checks whether all return types hint are well known.

@return bool
Checks whether all return types hint are well known .