Passed
Push — master ( bc8b6f...7a9b1f )
by Sergei
02:57
created

MagicCustomer   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 2
c 0
b 0
f 0
dl 0
loc 5
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getOrdersQuery() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yiisoft\ActiveRecord\Tests\Driver\Oracle\Stubs;
6
7
use Yiisoft\ActiveRecord\ActiveQuery;
8
9
/**
10
 * Class Customer.
11
 *
12
 * @property int $id
13
 * @property string $name
14
 * @property string $email
15
 * @property string $address
16
 * @property int $status
17
 */
18
final class MagicCustomer extends \Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord\Customer
19
{
20
    public function getOrdersQuery(): ActiveQuery
21
    {
22
        return $this->hasMany(Order::class, ['customer_id' => 'id'])->orderBy('{{customer}}.[[id]]');
23
    }
24
}
25