protected function onlyPossible(): self
    {
        if (count($this->types) < 2) {
            return $this;
        }

        $possible = $this->getPossibleTypes($this->value);

        return empty($possible) ? $this : $this->setTypes($possible);
    }
protected function onlyPossible(): self
    {
        if (count($this->types) < 2) {
            return $this;
        }

        $possible = $this->getPossibleTypes($this->value);

        return empty($possible) ? $this : $this->setTypes($possible);
    }
protected function onlyPossible ( ) : self { if ( count ( $ this -> types ) < 2 ) { return $ this ; } $ possible = $ this -> getPossibleTypes ( $ this -> value ) ; return empty ( $ possible ) ? $ this : $ this -> setTypes ( $ possible ) ; }
Return handler with only the possible types for the value.

@return static
Return handler with only the possible types for the value .