1 | <?php |
||
22 | class CreatePage extends SymfonyPage implements CreatePageInterface |
||
23 | { |
||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | private $resourceName; |
||
28 | |||
29 | /** |
||
30 | * @param Session $session |
||
31 | * @param array $parameters |
||
32 | * @param RouterInterface $router |
||
33 | * @param string $resourceName |
||
34 | */ |
||
35 | public function __construct(Session $session, array $parameters, RouterInterface $router, $resourceName) |
||
41 | |||
42 | /** |
||
43 | * {@inheritdoc} |
||
44 | */ |
||
45 | public function create() |
||
49 | |||
50 | /** |
||
51 | * {@inheritdoc} |
||
52 | */ |
||
53 | public function getValidationMessage($element) |
||
67 | |||
68 | /** |
||
69 | * {@inheritdoc} |
||
70 | */ |
||
71 | public function getRouteName() |
||
75 | |||
76 | /** |
||
77 | * @param string $element |
||
78 | * |
||
79 | * @return \Behat\Mink\Element\NodeElement|null |
||
80 | * |
||
81 | * @throws ElementNotFoundException |
||
82 | */ |
||
83 | private function getFieldElement($element) |
||
92 | } |
||
93 |