public function setData($data)
    {
        if ((is_string($data) === true && $data === '') || Format::isUri($data) === true) {
            $this->data = $data;
        } else {
            $msg = "The 'data' argument must be a URI or an empty string, '" . gettype($data) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setData($data)
    {
        if ((is_string($data) === true && $data === '') || Format::isUri($data) === true) {
            $this->data = $data;
        } else {
            $msg = "The 'data' argument must be a URI or an empty string, '" . gettype($data) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setData ( $ data ) { if ( ( is_string ( $ data ) === true && $ data === '' ) || Format :: isUri ( $ data ) === true ) { $ this -> data = $ data ; } else { $ msg = "The 'data' argument must be a URI or an empty string, '" . gettype ( $ data ) . "' given." ; throw new InvalidArgumentException ( $ msg ) ; } }
Set the URI for locating the data of the object.

@param string $data The URI for locating the data of the object.
@throws \InvalidArgumentException If $data is not a URI.
Set the URI for locating the data of the object .