public function setDirection($direction)
    {
        if (!in_array($direction, self::$supportedFlipDirection)) {
            throw new \InvalidArgumentException(sprintf(
                    '"%s" Is Not Valid Flip Direction', (string) $direction
            ));
        }
        $this->flipDirection = $direction;

        return $this;
    }
public function setDirection($direction)
    {
        if (!in_array($direction, self::$supportedFlipDirection)) {
            throw new \InvalidArgumentException(sprintf(
                    '"%s" Is Not Valid Flip Direction', (string) $direction
            ));
        }
        $this->flipDirection = $direction;

        return $this;
    }
public function setDirection ( $ direction ) { if ( ! in_array ( $ direction , self :: $ supportedFlipDirection ) ) { throw new \ InvalidArgumentException ( sprintf ( '"%s" Is Not Valid Flip Direction' , ( string ) $ direction ) ) ; } $ this -> flipDirection = $ direction ; return $ this ; }
Set flip direction

@param string $direction any of Flip::FLIP_*

@return \Jaguar\Action\Flip

@throws \InvalidArgumentException
Set flip direction