Completed
Push — master ( 104946...6683dc )
by Dmitry
02:26
created

src/models/Plan.php (1 issue)

1
<?php
2
/**
3
 * API for Billing
4
 *
5
 * @link      https://github.com/hiqdev/billing-hiapi
6
 * @package   billing-hiapi
7
 * @license   BSD-3-Clause
8
 * @copyright Copyright (c) 2017-2018, HiQDev (http://hiqdev.com/)
9
 */
10
11
namespace hiqdev\billing\hiapi\models;
12
13
use hiqdev\yii\DataMapper\models\AbstractModel;
14
use hiqdev\yii\DataMapper\query\attributes\BooleanAttribute;
0 ignored issues
show
The type hiqdev\yii\DataMapper\qu...ibutes\BooleanAttribute 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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
15
use hiqdev\yii\DataMapper\query\attributes\IntegerAttribute;
16
use hiqdev\yii\DataMapper\query\attributes\StringAttribute;
17
18
class Plan extends AbstractModel
19
{
20
    public function attributes()
21
    {
22
        return [
23
            'id'          => IntegerAttribute::class,
24
            'name'        => StringAttribute::class,
25
            'is_grouping' => BooleanAttribute::class,
26
        ];
27
    }
28
29
    public function relations()
30
    {
31
        return [
32
            'type' => Type::class,
33
            'seller' => Customer::class,
34
        ];
35
    }
36
}
37