Joli\Jane\Guesser\Guess\MultipleType::getTypeHint PHP Method

getTypeHint() public method

public getTypeHint ( )
    public function getTypeHint()
    {
        // We have exactly two types: one null and an object
        if (count($this->types) === 2) {
            list($type1, $type2) = $this->types;
            if ($this->isOptionalObjectType($type1, $type2)) {
                return $type2->getTypeHint();
            }
            if ($this->isOptionalObjectType($type2, $type1)) {
                return $type1->getTypeHint();
            }
        }
        return null;
    }