34 lines
608 B
PHP
34 lines
608 B
PHP
<?php namespace ZN\Image;
|
|
/**
|
|
* ZN PHP Web Framework
|
|
*
|
|
* "Simplicity is the ultimate sophistication." ~ Da Vinci
|
|
*
|
|
* @package ZN
|
|
* @license MIT [http://opensource.org/licenses/MIT]
|
|
* @author Ozan UYKUN [ozan@znframework.com]
|
|
*/
|
|
|
|
trait CallableFilters
|
|
{
|
|
/**
|
|
* Keeps GD filters.
|
|
*/
|
|
protected $filters;
|
|
|
|
/**
|
|
* Callable GD method
|
|
*
|
|
* @param string $method
|
|
* @param array $parameters
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function __call($method, $parameters)
|
|
{
|
|
$this->filters[] = [$method, $parameters];
|
|
|
|
return $this;
|
|
}
|
|
}
|