File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55abstract class BuilderAbstract implements BuilderInterface
66{
7+ /**
8+ * The command's name.
9+ *
10+ * @var string
11+ */
12+ protected $ command ;
13+
14+ /**
15+ * Constructor. Offers an opportunity to set a command's alias/path.
16+ *
17+ * @throws InvalidArgumentException If the argument isn't a string.
18+ */
19+ public function __construct ()
20+ {
21+ $ args = func_get_args ();
22+ if (!empty ($ args )) {
23+ if (is_string ($ args [0 ])) {
24+ $ this ->command = $ args [0 ];
25+ } else {
26+ throw new InvalidArgumentException ('This constructor expects a string argument. ' );
27+ }
28+ }
29+ }
30+
731 /**
832 * Build the command string to be executed.
933 *
Original file line number Diff line number Diff line change @@ -11,23 +11,6 @@ class GrowlNotifyBuilder extends BuilderAbstract
1111 */
1212 protected $ command = 'growlnotify ' ;
1313
14- /**
15- * Constructor. Offers an opportunity to set a command's alias.
16- *
17- * @throws InvalidArgumentException If the argument isn't a string.
18- */
19- public function __construct ()
20- {
21- $ args = func_get_args ();
22- if (!empty ($ args )) {
23- if (is_string ($ args [0 ])) {
24- $ this ->command = $ args [0 ];
25- } else {
26- throw new InvalidArgumentException ('This constructor expects a string argument. ' );
27- }
28- }
29- }
30-
3114 /**
3215 * Builds the growlnotify command to be executed.
3316 *
Original file line number Diff line number Diff line change @@ -11,23 +11,6 @@ class GrowlNotifyWindowsBuilder extends BuilderAbstract
1111 */
1212 protected $ command = 'growlnotify ' ;
1313
14- /**
15- * Constructor. Offers an opportunity to set a command's alias.
16- *
17- * @throws InvalidArgumentException If the argument isn't a string.
18- */
19- public function __construct ()
20- {
21- $ args = func_get_args ();
22- if (!empty ($ args )) {
23- if (is_string ($ args [0 ])) {
24- $ this ->command = $ args [0 ];
25- } else {
26- throw new InvalidArgumentException ('This constructor expects a string argument. ' );
27- }
28- }
29- }
30-
3114 /**
3215 * Builds the growlnotify command to be executed.
3316 *
Original file line number Diff line number Diff line change @@ -11,23 +11,6 @@ class NotifySendBuilder extends BuilderAbstract
1111 */
1212 protected $ command = 'notify-send ' ;
1313
14- /**
15- * Constructor. Offers an opportunity to set a command's alias.
16- *
17- * @throws InvalidArgumentException If the argument isn't a string.
18- */
19- public function __construct ()
20- {
21- $ args = func_get_args ();
22- if (!empty ($ args )) {
23- if (is_string ($ args [0 ])) {
24- $ this ->command = $ args [0 ];
25- } else {
26- throw new InvalidArgumentException ('This constructor expects a string argument. ' );
27- }
28- }
29- }
30-
3114 /**
3215 * Builds the notify-send command to be executed.
3316 *
Original file line number Diff line number Diff line change @@ -11,23 +11,6 @@ class TerminalNotifierBuilder extends BuilderAbstract
1111 */
1212 protected $ command = 'terminal-notifier ' ;
1313
14- /**
15- * Constructor. Offers an opportunity to set a command's alias.
16- *
17- * @throws InvalidArgumentException If the argument isn't a string.
18- */
19- public function __construct ()
20- {
21- $ args = func_get_args ();
22- if (!empty ($ args )) {
23- if (is_string ($ args [0 ])) {
24- $ this ->command = $ args [0 ];
25- } else {
26- throw new InvalidArgumentException ('This constructor expects a string argument. ' );
27- }
28- }
29- }
30-
3114 /**
3215 * Builds the terminal-notifier command to be executed.
3316 *
You can’t perform that action at this time.
0 commit comments