| 1 | <?php |
||
| 7 | class Process |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var int |
||
| 11 | */ |
||
| 12 | protected $pid; |
||
| 13 | |||
| 14 | public function __construct() |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @return string |
||
| 21 | */ |
||
| 22 | public function getApplicationName(): string |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Check if the given pid is an instance of the application. |
||
| 29 | * |
||
| 30 | * @param int $pid |
||
| 31 | * |
||
| 32 | * @return bool |
||
| 33 | */ |
||
| 34 | public function isApplicationProcess($pid): bool |
||
| 44 | } |
||
| 45 |