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     * @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}