public function setSummary($summary)
    {
        if (is_string($summary) === true) {
            $this->summary = $summary;
        } else {
            $msg = "The 'summary' argument must be a string, '" . gettype($summary) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setSummary($summary)
    {
        if (is_string($summary) === true) {
            $this->summary = $summary;
        } else {
            $msg = "The 'summary' argument must be a string, '" . gettype($summary) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setSummary ( $ summary ) { if ( is_string ( $ summary ) === true ) { $ this -> summary = $ summary ; } else { $ msg = "The 'summary' argument must be a string, '" . gettype ( $ summary ) . "' given." ; throw new InvalidArgumentException ( $ msg ) ; } }
Set the value of the summary attribute. An empty string
means there is no summary.

@param string $summary
@throws \InvalidArgumentException If $summary is not a string.
Set the value of the summary attribute . An empty string means there is no summary .