| Total Complexity | 5 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class RotationFilter implements ModifierInterface |
||
| 9 | { |
||
| 10 | private $rotation; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Creates new instance of filter |
||
| 14 | * |
||
| 15 | */ |
||
| 16 | public function __construct($rotation) |
||
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Applies filter effects to given image |
||
| 23 | * |
||
| 24 | * @param ImageInterface $image |
||
| 25 | * |
||
| 26 | * @return ImageInterface |
||
| 27 | */ |
||
| 28 | public function apply(ImageInterface $image): ImageInterface |
||
| 41 |