1 | <?php |
||
10 | abstract class BuilderAbstract implements BuilderInterface |
||
11 | { |
||
12 | /** |
||
13 | * The notifier's path. |
||
14 | * |
||
15 | * @var string |
||
16 | */ |
||
17 | protected $path; |
||
18 | |||
19 | /** |
||
20 | * Constructor. Offers an opportunity to set a notifier's alias/path. |
||
21 | * |
||
22 | * @param string|null $path The path to the notifier's CLI. |
||
23 | * @throws \InvalidArgumentException If the argument isn't a string. |
||
24 | */ |
||
25 | 42 | public function __construct($path = null) |
|
39 | |||
40 | /** |
||
41 | * Build the command string to be executed. |
||
42 | * |
||
43 | * @param array $options An array of options to use for building the |
||
44 | * command. |
||
45 | * @return string |
||
46 | */ |
||
47 | abstract public function build($options); |
||
48 | } |
||
49 |