Пример #1
0
 /**
  * Contruct new action
  *
  * @param \Karla\Program $program
  *            The program to use
  * @param string $method
  *            Method
  *
  * @throws \InvalidArgumentException If the supplied method is not supported by imagemagick.
  */
 public function __construct($program, $method)
 {
     if (!Support::layerMethod($program, $method)) {
         $message = 'The supplied method (' . $method . ') is not supported by imagemagick';
         throw new \InvalidArgumentException($message);
     }
     $this->method = $method;
 }