Completed
Push — master ( 53b99e...05e097 )
by Basil
03:48
created

BaseLink   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A fields() 0 4 1
1
<?php
2
3
namespace luya\web;
4
5
use yii\base\BaseObject;
6
use yii\base\Arrayable;
7
use yii\base\ArrayableTrait;
8
9
/**
10
 * The basic class for LinkInterface object.
11
 * 
12
 * It ensures the Arrayable and Linkinterface for a given Link implementation.
13
 * 
14
 * @author Basil Suter <[email protected]>
15
 * @since 1.0.10
16
 */
17
abstract class BaseLink extends BaseObject implements LinkInterface, Arrayable
18
{
19
    use LinkTrait, ArrayableTrait;
20
    
21
    /**
22
     * @inheritdoc
23
     */
24
    public function fields()
25
    {
26
        return ['href', 'target'];
27
    }
28
}