public function flip(array $options = []) {
		if (!isset($options['direction'])) {
			$options['direction'] = 'vertically';
		}
		if (!in_array($options['direction'], ['vertically', 'horizontally'])) {
			throw new \InvalidArgumentException(__d('imagine', 'Invalid direction, use vertically or horizontally'));
		}
		$method = 'flip' . $options['direction'];
		$this->_image->{$method}();
		return $this;
	}
public function flip(array $options = []) {
		if (!isset($options['direction'])) {
			$options['direction'] = 'vertically';
		}
		if (!in_array($options['direction'], ['vertically', 'horizontally'])) {
			throw new \InvalidArgumentException(__d('imagine', 'Invalid direction, use vertically or horizontally'));
		}
		$method = 'flip' . $options['direction'];
		$this->_image->{$method}();
		return $this;
	}
public function flip ( array $ options = [ ] ) { if ( ! isset ( $ options [ 'direction' ] ) ) { $ options [ 'direction' ] = 'vertically' ; } if ( ! in_array ( $ options [ 'direction' ] , [ 'vertically' , 'horizontally' ] ) ) { throw new \ InvalidArgumentException ( __d ( 'imagine' , 'Invalid direction, use vertically or horizontally' ) ) ; } $ method = 'flip' . $ options [ 'direction' ] ; $ this -> _image -> { $ method } ( ) ; return $ this ; }
Wrapper for Imagine flipHorizontally and flipVertically

@param array Array of options for processing the image.
@throws \InvalidArgumentException
@return $this
Wrapper for Imagine flipHorizontally and flipVertically