| 1 | <?php |
||
| 19 | trait UsesInterfaceTrait |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @param string $interfaceName |
||
| 23 | * @return bool |
||
| 24 | */ |
||
| 25 | public function validateInterface(string $interfaceName) |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param string $interfaceName |
||
| 32 | */ |
||
| 33 | public function requireInterface(string $interfaceName) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @param string $interfaceName |
||
| 42 | * @throws Throwable |
||
| 43 | */ |
||
| 44 | public function demandInterface(string $interfaceName) |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @param WriterInterface $writer |
||
| 57 | */ |
||
| 58 | abstract public function setWriter(WriterInterface $writer); |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @return WriterInterface |
||
| 62 | */ |
||
| 63 | abstract public function getWriter(): WriterInterface; |
||
| 64 | } |
||
| 65 |