bluzphp /
module-phones
| 1 | <?php |
||
| 2 | |||
| 3 | /** |
||
| 4 | * @namespace |
||
| 5 | */ |
||
| 6 | |||
| 7 | namespace Application\UsersPhones; |
||
| 8 | |||
| 9 | use Bluz\Validator\Traits\Validator; |
||
|
0 ignored issues
–
show
|
|||
| 10 | |||
| 11 | /** |
||
| 12 | * Class Row for `users_phones` |
||
| 13 | * |
||
| 14 | * @package Application\UsersPhones |
||
| 15 | * |
||
| 16 | * @property integer $id |
||
| 17 | * @property integer $userId |
||
| 18 | * @property string $number |
||
| 19 | * @property string $status |
||
| 20 | * @property string $created |
||
| 21 | * @property string $updated |
||
| 22 | * |
||
| 23 | * @author Anton Shevchuk |
||
| 24 | * @created 2017-11-21 18:26:26 |
||
| 25 | */ |
||
| 26 | class Row extends \Bluz\Db\Row |
||
|
0 ignored issues
–
show
The type
Bluz\Db\Row was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 27 | { |
||
| 28 | use Validator; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @return void |
||
| 32 | */ |
||
| 33 | protected function afterRead(): void |
||
| 34 | { |
||
| 35 | $this->addValidator('userId') |
||
| 36 | ->numeric() |
||
| 37 | ->required(); |
||
| 38 | |||
| 39 | $this->addValidator('number') |
||
| 40 | ->numeric() |
||
| 41 | ->length(12, 12) |
||
| 42 | ->required(); |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * getUser |
||
| 47 | * |
||
| 48 | * @return \Application\Users\Row|false |
||
|
0 ignored issues
–
show
The type
Application\Users\Row was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 49 | * @throws \Bluz\Db\Exception\RelationNotFoundException |
||
| 50 | * @throws \Bluz\Db\Exception\TableNotFoundException |
||
| 51 | */ |
||
| 52 | public function getUser() |
||
| 53 | { |
||
| 54 | return $this->getRelation('Users'); |
||
| 55 | } |
||
| 56 | } |
||
| 57 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths