| 1 | <?php |
||
| 15 | abstract class BaseEntityScope implements EntityScope { |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var Environment |
||
| 19 | */ |
||
| 20 | private $environment; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Context object. |
||
| 24 | * |
||
| 25 | * @var \Behat\Behat\Context\Context |
||
| 26 | */ |
||
| 27 | private $context; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Entity object. |
||
| 31 | */ |
||
| 32 | private $entity; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Initializes the scope. |
||
| 36 | */ |
||
| 37 | public function __construct(Environment $environment, Context $context, $entity) { |
||
| 38 | $this->context = $context; |
||
| 39 | $this->entity = $entity; |
||
| 40 | $this->environment = $environment; |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Returns the context. |
||
| 45 | * |
||
| 46 | * @return \Behat\Behat\Context\Context |
||
| 47 | */ |
||
| 48 | public function getContext() { |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Returns the entity object. |
||
| 54 | */ |
||
| 55 | public function getEntity() { |
||
| 58 | |||
| 59 | /** |
||
| 60 | * {@inheritDoc} |
||
| 61 | */ |
||
| 62 | public function getEnvironment() { |
||
| 65 | |||
| 66 | /** |
||
| 67 | * {@inheritDoc} |
||
| 68 | */ |
||
| 69 | public function getSuite() { |
||
| 72 | } |
||
| 73 |