| 1 | <?php |
||
| 7 | class Select2 |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var \AcceptanceTester |
||
| 11 | */ |
||
| 12 | protected $tester; |
||
| 13 | |||
| 14 | function __construct(AcceptanceTester $I) |
||
| 18 | |||
| 19 | public function fillSearchField(string $name): void |
||
| 24 | |||
| 25 | public function open($selector) |
||
| 32 | |||
| 33 | public function seeIsOpened() |
||
| 39 | |||
| 40 | public function seeIsClosed() |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @param $optionName |
||
| 49 | * @return $this |
||
| 50 | */ |
||
| 51 | public function chooseOption($optionName) |
||
| 63 | |||
| 64 | protected function getSelect2Selector($selector) |
||
| 68 | |||
| 69 | protected function getSelect2OptionSelector() |
||
| 73 | } |
||
| 74 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.