public function setAbbr($abbr)
    {
        if (is_string($abbr) === true) {
            $this->abbr = $abbr;
        } else {
            $msg = "The 'abbr' attribute must be a string, '" . gettype($abbr) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setAbbr($abbr)
    {
        if (is_string($abbr) === true) {
            $this->abbr = $abbr;
        } else {
            $msg = "The 'abbr' attribute must be a string, '" . gettype($abbr) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setAbbr ( $ abbr ) { if ( is_string ( $ abbr ) === true ) { $ this -> abbr = $ abbr ; } else { $ msg = "The 'abbr' attribute must be a string, '" . gettype ( $ abbr ) . "' given." ; throw new InvalidArgumentException ( $ msg ) ; } }
Set the value of the abbr attribute.

@param string $attr A string or an empty string if no abbr is defined.
@throws \InvalidArgumentException If $bbr is not a string.
Set the value of the abbr attribute .