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

BaseLink::fields()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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
}