| 1 | <?php |
||
| 19 | abstract class AbstractNetworkAdapter |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var NetworkInterface |
||
| 23 | */ |
||
| 24 | protected $network; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * AbstractNetworkAdapter constructor. |
||
| 28 | * |
||
| 29 | * @param NetworkInterface $network |
||
| 30 | */ |
||
| 31 | 2 | public function __construct(NetworkInterface $network) |
|
| 35 | |||
| 36 | /** |
||
| 37 | * @return NetworkInterface |
||
| 38 | */ |
||
| 39 | 1 | public function getNetwork() |
|
| 43 | |||
| 44 | /** |
||
| 45 | * @return null|Graph |
||
| 46 | */ |
||
| 47 | 1 | public function getGraph() |
|
| 51 | |||
| 52 | /** |
||
| 53 | * Cleanup network state after runs. |
||
| 54 | * |
||
| 55 | * @return $this |
||
| 56 | */ |
||
| 57 | 1 | public function shutdown() |
|
| 63 | } |
||
| 64 |