public function testUserDefinedOp()
 {
     $op = OperationFactory::get('MyOperation');
     $this->assertTrue($op instanceof MyOperation);
 }
示例#2
0
 /**
  * @see \WideImage\Image#getChannels()
  */
 public function getChannels()
 {
     $args = func_get_args();
     if (count($args) == 1 && is_array($args[0])) {
         $args = $args[0];
     }
     return OperationFactory::get('CopyChannelsTrueColor')->execute($this, $args);
 }
 /**
  * Used internally to create Operation objects
  *
  * @param string $name
  * @return object
  */
 protected function getOperation($name)
 {
     return OperationFactory::get($name);
 }