eZ\Publish\Core\FieldType\Validator::__get PHP Method

__get() public method

Returns constraint value, from its $name.
public __get ( string $name ) : mixed
$name string
return mixed
    public function __get($name)
    {
        if (!isset($this->constraints[$name])) {
            throw new PropertyNotFound("The constraint '{$name}' is not valid for this validator.");
        }
        return $this->constraints[$name];
    }