6 namespace Drupal\DrupalExtension\Hook\Scope;
8 use Behat\Behat\Context\Context;
9 use Behat\Testwork\Environment\Environment;
10 use Behat\Testwork\Hook\Scope\HookScope;
13 * Represents an Entity hook scope.
15 abstract class BaseEntityScope implements EntityScope {
25 * @var \Behat\Behat\Context\Context
35 * Initializes the scope.
37 public function __construct(Environment $environment, Context $context, $entity) {
38 $this->context = $context;
39 $this->entity = $entity;
40 $this->environment = $environment;
44 * Returns the context.
46 * @return \Behat\Behat\Context\Context
48 public function getContext() {
49 return $this->context;
53 * Returns the entity object.
55 public function getEntity() {
62 public function getEnvironment() {
63 return $this->environment;
69 public function getSuite() {
70 return $this->environment->getSuite();