public function setDir($dir)
    {
        if (in_array($dir, Direction::asArray(), true) === true) {
            $this->dir = $dir;
        } else {
            $msg = "The 'dir' argument must be a value from the Direction enumeration.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setDir($dir)
    {
        if (in_array($dir, Direction::asArray(), true) === true) {
            $this->dir = $dir;
        } else {
            $msg = "The 'dir' argument must be a value from the Direction enumeration.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setDir ( $ dir ) { if ( in_array ( $ dir , Direction :: asArray ( ) , true ) === true ) { $ this -> dir = $ dir ; } else { $ msg = "The 'dir' argument must be a value from the Direction enumeration." ; throw new InvalidArgumentException ( $ msg ) ; } }
Set the direction in which body elements must be displayed.

@param integer $dir A value from the Direction enumeration.
@throws InvalidArgumentException If $dir is not a value from the Direction enumeration.
Set the direction in which body elements must be displayed .