1 | <?php |
||
23 | abstract class SymfonyPage extends Page |
||
24 | { |
||
25 | /** |
||
26 | * @var RouterInterface |
||
27 | */ |
||
28 | protected $router; |
||
29 | |||
30 | /** |
||
31 | * @param Session $session |
||
32 | * @param Factory $factory |
||
33 | * @param array $parameters |
||
34 | * @param RouterInterface $router |
||
35 | */ |
||
36 | public function __construct(Session $session, Factory $factory, array $parameters = [], RouterInterface $router) |
||
42 | |||
43 | /** |
||
44 | * @param string $locator |
||
45 | * |
||
46 | * @throws ElementNotFoundException |
||
47 | */ |
||
48 | public function pressRadio($locator) |
||
58 | |||
59 | /** |
||
60 | * @param array $urlParameters |
||
61 | */ |
||
62 | public function assertRoute(array $urlParameters = array()) |
||
66 | |||
67 | /** |
||
68 | * @param array $urlParameters |
||
69 | * |
||
70 | * @return string |
||
71 | */ |
||
72 | protected function getUrl(array $urlParameters = array()) |
||
80 | |||
81 | abstract public function getRouteName(); |
||
82 | } |
||
83 |