1 | <?php |
||
14 | class RawUserContext extends RawTqContext |
||
15 | { |
||
16 | use BaseEntity; |
||
17 | |||
18 | /** |
||
19 | * {@inheritdoc} |
||
20 | */ |
||
21 | protected function entityType() |
||
25 | |||
26 | /** |
||
27 | * {@inheritdoc} |
||
28 | */ |
||
29 | public function getCurrentId() |
||
33 | |||
34 | /** |
||
35 | * @param string $column |
||
36 | * Column of a "users" table. |
||
37 | * @param string $value |
||
38 | * Expected value in column. |
||
39 | * |
||
40 | * @return int |
||
41 | */ |
||
42 | public function getIdByArguments($column, $value) |
||
48 | |||
49 | /** |
||
50 | * @param string $roles |
||
51 | * Necessary user roles separated by comma. |
||
52 | * @param array $fields |
||
53 | * |
||
54 | * @return \stdClass |
||
55 | */ |
||
56 | public function createUserWithRoles($roles, array $fields = []) |
||
67 | |||
68 | /** |
||
69 | * @throws \Exception |
||
70 | */ |
||
71 | public function loginUser() |
||
84 | |||
85 | /** |
||
86 | * @param array $props |
||
87 | * An array with two keys: "username" and "password". Both of them are required. |
||
88 | * @param string $message |
||
89 | * An error message, that will be thrown when user cannot be authenticated. |
||
90 | * |
||
91 | * @throws \Behat\Mink\Exception\ElementNotFoundException |
||
92 | * When one of a fields cannot be not found. |
||
93 | * @throws \Exception |
||
94 | * When login process failed. |
||
95 | * @throws \WebDriver\Exception\NoSuchElement |
||
96 | * When log in button cannot be found. |
||
97 | */ |
||
98 | public function fillLoginForm(array $props, $message = '') |
||
123 | |||
124 | /** |
||
125 | * Cookies are set when at least one page of the site has been visited. This |
||
126 | * action done in "beforeScenario" hook of TqContext. |
||
127 | * |
||
128 | * @see TqContext::beforeScenario() |
||
129 | * |
||
130 | * @return bool |
||
131 | */ |
||
132 | public function isLoggedIn() |
||
145 | |||
146 | public function logoutUser() |
||
152 | |||
153 | /** |
||
154 | * @param array $fields |
||
155 | * Additional data for user account. |
||
156 | * |
||
157 | * @throws \Exception |
||
158 | * |
||
159 | * @return \stdClass |
||
160 | */ |
||
161 | public function createTestUser(array $fields = []) |
||
227 | } |
||
228 |
Since your code implements the magic getter
_get
, this function will be called for any read access on an undefined variable. You can add the@property
annotation to your class or interface to document the existence of this variable.If the property has read access only, you can use the @property-read annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.