public function setResourceIdentifier($resourceIdentifier)
    {
        if (is_string($resourceIdentifier) === false) {
            $msg = "The resourceIdentifier argument must be a string.";
            throw new InvalidArgumentException($msg);
        } elseif ($resourceIdentifier === '') {
            $msg = "The resourceIdentifier argument must be a non-empty string.";
            throw new InvalidArgumentException($msg);
        } else {
            $this->resourceIdentifier = $resourceIdentifier;
        }
    }
public function setResourceIdentifier($resourceIdentifier)
    {
        if (is_string($resourceIdentifier) === false) {
            $msg = "The resourceIdentifier argument must be a string.";
            throw new InvalidArgumentException($msg);
        } elseif ($resourceIdentifier === '') {
            $msg = "The resourceIdentifier argument must be a non-empty string.";
            throw new InvalidArgumentException($msg);
        } else {
            $this->resourceIdentifier = $resourceIdentifier;
        }
    }
public function setResourceIdentifier ( $ resourceIdentifier ) { if ( is_string ( $ resourceIdentifier ) === false ) { $ msg = "The resourceIdentifier argument must be a string." ; throw new InvalidArgumentException ( $ msg ) ; } elseif ( $ resourceIdentifier === '' ) { $ msg = "The resourceIdentifier argument must be a non-empty string." ; throw new InvalidArgumentException ( $ msg ) ; } else { $ this -> resourceIdentifier = $ resourceIdentifier ; } }
Set the identifier of the resource the MetadataValue describes.

@param string $resourceIdentifier An identifier.
@throws InvalidArgumentException If $resourceIdentifier is not a string or an empty string.
Set the identifier of the resource the MetadataValue describes .