public function canHandle($payload)
    {
        if (is_object($payload) && is_a($payload, $this->payloadClassName)) {
            return true;
        } elseif (is_string($payload) && is_subclass_of($payload, $this->payloadClassName)) {
            return true;
        } else {
            return false;
        }
    }
public function canHandle($payload)
    {
        if (is_object($payload) && is_a($payload, $this->payloadClassName)) {
            return true;
        } elseif (is_string($payload) && is_subclass_of($payload, $this->payloadClassName)) {
            return true;
        } else {
            return false;
        }
    }
public function canHandle ( $ payload ) { if ( is_object ( $ payload ) && is_a ( $ payload , $ this -> payloadClassName ) ) { return true ; } elseif ( is_string ( $ payload ) && is_subclass_of ( $ payload , $ this -> payloadClassName ) ) { return true ; } else { return false ; } }
Here, the DtoConverter can do some additional runtime checks to see whether
it can handle the given source data.

@param mixed $payload the source data
@return boolean TRUE if this DtoConverter can handle the $source, FALSE otherwise.
Here the DtoConverter can do some additional runtime checks to see whether it can handle the given source data .