| 1 | <?php | ||
| 11 | class JobOath implements OathInterface | ||
| 12 | { | ||
| 13 | /** @var ResponseOath */ | ||
| 14 | protected $responseOath; | ||
| 15 | |||
| 16 | /** @var JobFactory */ | ||
| 17 | protected $jobFactory; | ||
| 18 | |||
| 19 | /** | ||
| 20 | * @param ResponseOath $oath | ||
| 21 | * @param JobFactory|null $jobFactory | ||
| 22 | */ | ||
| 23 | 11 | public function __construct(ResponseOath $oath, JobFactory $jobFactory = null) | |
| 28 | |||
| 29 | /** | ||
| 30 | * @return resource | ||
| 31 | */ | ||
| 32 | 1 | public function getSocket() | |
| 36 | |||
| 37 | /** | ||
| 38 | * @return Job|null | ||
| 39 | */ | ||
| 40 | 9 | public function invoke() | |
| 48 | } | ||
| 49 |