Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 5 |
|
0.00% |
0 / 4 |
CRAP | |
0.00% |
0 / 1 |
| Composite | |
0.00% |
0 / 5 |
|
0.00% |
0 / 4 |
20 | |
0.00% |
0 / 1 |
| basefile | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| changefile | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| outputfile | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| raw | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Karla ImageMagick wrapper library |
| 5 | * |
| 6 | * PHP Version 8.0< |
| 7 | * |
| 8 | * @category Utility |
| 9 | * @author Johannes Skov Frandsen <jsf@greenoak.dk> |
| 10 | * @license http://www.opensource.org/licenses/mit-license.php MIT |
| 11 | * @link https://github.com/localgod/karla Karla |
| 12 | * @since 2012-04-05 |
| 13 | */ |
| 14 | |
| 15 | declare(strict_types=1); |
| 16 | |
| 17 | namespace Karla\Program; |
| 18 | |
| 19 | /** |
| 20 | * Class for wrapping ImageMagicks composite tool |
| 21 | * |
| 22 | * @category Utility |
| 23 | * @author Johannes Skov Frandsen <jsf@greenoak.dk> |
| 24 | * @license http://www.opensource.org/licenses/mit-license.php MIT |
| 25 | * @link https://github.com/localgod/karla Karla |
| 26 | */ |
| 27 | class Composite extends ImageMagick |
| 28 | { |
| 29 | /** |
| 30 | * Add base file argument |
| 31 | * |
| 32 | * @return Composite |
| 33 | */ |
| 34 | public function basefile() |
| 35 | { |
| 36 | return $this; |
| 37 | } |
| 38 | |
| 39 | /** |
| 40 | * Add change file argument |
| 41 | * |
| 42 | * @return Composite |
| 43 | */ |
| 44 | public function changefile() |
| 45 | { |
| 46 | return $this; |
| 47 | } |
| 48 | |
| 49 | /** |
| 50 | * Add output file argument |
| 51 | * |
| 52 | * @return Composite |
| 53 | */ |
| 54 | public function outputfile() |
| 55 | { |
| 56 | return $this; |
| 57 | } |
| 58 | |
| 59 | /** |
| 60 | * Raw arguments directly to ImageMagick |
| 61 | * |
| 62 | * @param string $arguments |
| 63 | * Arguments |
| 64 | * @param boolean $input |
| 65 | * Defaults to an input option, use false to use it as an output option |
| 66 | * |
| 67 | * @return Composite |
| 68 | * @see ImageMagick::raw() |
| 69 | */ |
| 70 | public function raw($arguments, $input = true): self |
| 71 | { |
| 72 | parent::raw($arguments, $input); |
| 73 | return $this; |
| 74 | } |
| 75 | } |