eZ\Publish\Core\FieldType\EmailAddress\Type::checkValueStructure PHP Method

checkValueStructure() protected method

Throws an exception if value structure is not of expected format.
protected checkValueStructure ( Value $value )
$value eZ\Publish\Core\FieldType\Value
    protected function checkValueStructure(BaseValue $value)
    {
        if (!is_string($value->email)) {
            throw new InvalidArgumentType('$value->email', 'string', $value->email);
        }
    }