public function isValid($value)
    {
        if ($value instanceof PersonName) {
            if (strlen(trim($value->getFullName())) === 0) {
                $this->addError('The person name cannot be empty.', 1268676765);
            }
        }
    }
public function isValid($value)
    {
        if ($value instanceof PersonName) {
            if (strlen(trim($value->getFullName())) === 0) {
                $this->addError('The person name cannot be empty.', 1268676765);
            }
        }
    }
public function isValid ( $ value ) { if ( $ value instanceof PersonName ) { if ( strlen ( trim ( $ value -> getFullName ( ) ) ) === 0 ) { $ this -> addError ( 'The person name cannot be empty.' , 1268676765 ) ; } } }
Checks if the concatenated person name has at least one character.

Any errors can be retrieved through the getErrors() method.

@param mixed $value The value that should be validated
@return void
Checks if the concatenated person name has at least one character .