Slide 17
Slide 17 text
5
6 class Executor
7 {
8 /**
9 * @var Processor
10 */
11 private $output;
12
13 /**
14 * @var string
15 */
16 private $name;
17
18 /**
19 * Executor constructor.
20 * @param Processor $output
21 * @param string $name
22 */
23 public function __construct(Processor $output, string $name)
24 {
25 $this->output = $output;
26 $this->name = $name;
27 }
28
29 public function run() : string