Passed
Pull Request — master (#99)
by
unknown
02:46
created

BaseContext   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 3
c 2
b 0
f 0
dl 0
loc 11
rs 10
wmc 1
1
<?php
2
/**
3
 * PHP Billing Library
4
 *
5
 * @link      https://github.com/hiqdev/php-billing
6
 * @package   php-billing
7
 * @license   BSD-3-Clause
8
 * @copyright Copyright (c) 2017-2020, HiQDev (http://hiqdev.com/)
9
 */
10
11
namespace hiqdev\php\billing\tests\behat\bootstrap;
12
13
use Behat\Behat\Context\Context;
14
use Behat\Behat\Hook\Scope\BeforeScenarioScope;
15
16
abstract class BaseContext implements Context
17
{
18
    /** @var BuilderInterface */
19
    protected $builder;
20
21
    /**
22
     * @BeforeScenario
23
     */
24
    public function getBuilder(BeforeScenarioScope $scope)
25
    {
26
        $this->builder = $scope->getEnvironment()->getContext(BuilderContext::class)->getBuilder();
27
    }
28
}
29