Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
5 / 5
100.00% covered (success)
100.00%
4 / 4
CRAP
100.00% covered (success)
100.00%
1 / 1
Composite
100.00% covered (success)
100.00%
5 / 5
100.00% covered (success)
100.00%
4 / 4
4
100.00% covered (success)
100.00%
1 / 1
 basefile
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 changefile
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 outputfile
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 raw
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
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
15declare(strict_types=1);
16
17namespace 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 */
27class Composite extends ImageMagick
28{
29    /**
30     * Add base file argument
31     */
32    public function basefile(): self
33    {
34        return $this;
35    }
36
37    /**
38     * Add change file argument
39     */
40    public function changefile(): self
41    {
42        return $this;
43    }
44
45    /**
46     * Add output file argument
47     */
48    public function outputfile(): self
49    {
50        return $this;
51    }
52
53    /**
54     * Raw arguments directly to ImageMagick
55     *
56     * @param string $arguments Arguments
57     * @param bool $input Defaults to an input option, use false to use it as an output option
58     *
59     * @see ImageMagick::raw()
60     */
61    public function raw(string $arguments, bool $input = true): self
62    {
63        parent::raw($arguments, $input);
64        return $this;
65    }
66}