1 | <?php |
||
13 | abstract class AbstractStub implements StubInterface |
||
14 | { |
||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | protected $name; |
||
19 | |||
20 | /** |
||
21 | * @var mixed |
||
22 | */ |
||
23 | protected $value; |
||
24 | |||
25 | /** |
||
26 | * AbstractStub constructor. |
||
27 | * @param string $name |
||
28 | * @param mixed $value |
||
29 | * |
||
30 | * @throws InvalidArgumentException |
||
31 | */ |
||
32 | 87 | public function __construct(string $name, $value) |
|
37 | |||
38 | /** |
||
39 | * @return string |
||
40 | */ |
||
41 | 82 | public function getName(): string |
|
45 | |||
46 | /** |
||
47 | * @return mixed |
||
48 | */ |
||
49 | 82 | public function getValue() |
|
53 | } |
||
54 |