4 * This file is part of the Behat Testwork.
5 * (c) Konstantin Kudryashov <ever.zet@gmail.com>
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
11 namespace Behat\Testwork\Environment\Call;
13 use Behat\Testwork\Call\Call;
14 use Behat\Testwork\Call\Callee;
15 use Behat\Testwork\Environment\Environment;
18 * Represents environment-based call.
20 * @author Konstantin Kudryashov <ever.zet@gmail.com>
22 class EnvironmentCall implements Call
39 private $errorReportingLevel;
44 * @param Environment $environment
45 * @param Callee $callee
46 * @param array $arguments
47 * @param null|integer $errorReportingLevel
49 public function __construct(
50 Environment $environment,
53 $errorReportingLevel = null
55 $this->environment = $environment;
56 $this->callee = $callee;
57 $this->arguments = $arguments;
58 $this->errorReportingLevel = $errorReportingLevel;
62 * Returns environment this call is executed from.
66 final public function getEnvironment()
68 return $this->environment;
74 final public function getCallee()
82 final public function getBoundCallable()
84 return $this->environment->bindCallee($this->callee);
90 final public function getArguments()
92 return $this->arguments;
98 final public function getErrorReportingLevel()
100 return $this->errorReportingLevel;