| Total Complexity | 4 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Coverage | 60% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | abstract class AbstractProxy |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var eCurringClientInterface |
||
| 14 | */ |
||
| 15 | private $__client; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | private $__id; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var null|Subscription |
||
| 24 | */ |
||
| 25 | private $__object; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @return SubscriptionProxy |
||
| 29 | */ |
||
| 30 | 3 | public function __construct(eCurringClientInterface $client, $deviceId) |
|
| 31 | { |
||
| 32 | 3 | $this->__id = $deviceId; |
|
| 33 | 3 | $this->__client = $client; |
|
| 34 | 3 | } |
|
| 35 | |||
| 36 | /** |
||
| 37 | * @return Subscription |
||
| 38 | */ |
||
| 39 | abstract protected function __load(eCurringClientInterface $client, string $id); |
||
| 40 | |||
| 41 | 3 | public function getId() |
|
| 44 | } |
||
| 45 | |||
| 46 | public function __call($method, $args) |
||
| 53 | } |
||
| 54 | } |
||
| 55 |