Crummy\Phlack\Common\Collection\TypeCollection::doUnexpectedValueError PHP Метод

doUnexpectedValueError() приватный Метод

private doUnexpectedValueError ( $element ) : Crummy\Phlack\Common\Exception\UnexpectedValueException
$element
Результат Crummy\Phlack\Common\Exception\UnexpectedValueException
    private function doUnexpectedValueError($element)
    {
        return new UnexpectedValueException(sprintf('"%s" does not match the expected type.', is_object($element) ? get_class($element) : gettype($element)));
    }