| 1 | <?php |
||
| 10 | class Process implements DispatcherAwareInterface |
||
| 11 | { |
||
| 12 | use DispatcherAwareTrait; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | protected $id; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | protected $parentId; |
||
| 23 | |||
| 24 | |||
| 25 | /** |
||
| 26 | * @var ContextInterface |
||
| 27 | */ |
||
| 28 | protected $context; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param string $id |
||
| 32 | * @param null $parentId |
||
| 33 | */ |
||
| 34 | 222 | public function __construct($id = null, $parentId = null) |
|
| 41 | |||
| 42 | /** |
||
| 43 | * @param null $parentId |
||
| 44 | * @return Process |
||
| 45 | */ |
||
| 46 | 222 | public static function build($parentId = null) |
|
| 50 | |||
| 51 | /** |
||
| 52 | * @return string |
||
| 53 | */ |
||
| 54 | 184 | public function getId() |
|
| 58 | |||
| 59 | /** |
||
| 60 | * @return ContextInterface |
||
| 61 | */ |
||
| 62 | 10 | public function getContext() |
|
| 66 | |||
| 67 | /** |
||
| 68 | * @param ContextInterface $context |
||
| 69 | */ |
||
| 70 | 126 | public function setContext($context) |
|
| 74 | |||
| 75 | /** |
||
| 76 | * @return string |
||
| 77 | */ |
||
| 78 | 6 | public function getParentId() |
|
| 82 | } |
||
| 83 |