luyadev/luya

View on GitHub
core/web/BaseLink.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?php

namespace luya\web;

use yii\base\Arrayable;
use yii\base\ArrayableTrait;
use yii\base\BaseObject;

/**
 * The basic class for LinkInterface object.
 *
 * It ensures the Arrayable and Linkinterface for a given Link implementation.
 *
 * @author Basil Suter <basil@nadar.io>
 * @since 1.0.10
 */
abstract class BaseLink extends BaseObject implements LinkInterface, Arrayable
{
    use LinkTrait;
    use ArrayableTrait;

    /**
     * @inheritdoc
     */
    public function fields()
    {
        return ['href', 'target'];
    }
}