summaryrefslogtreecommitdiffstats
path: root/vendor/ipl/web/src/Common/BaseTarget.php
blob: db9be28dc2c742f084efa78c66bb281468d90318 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php

namespace ipl\Web\Common;

/**
 * @method \ipl\Html\Attributes getAttributes()
 */
trait BaseTarget
{
    /**
     * Get the data-base-target attribute
     *
     * @return string|null
     */
    public function getBaseTarget()
    {
        return $this->getAttributes()->get('data-base-target')->getValue();
    }

    /**
     * Set the data-base-target attribute
     *
     * @param string $target
     *
     * @return $this
     */
    public function setBaseTarget($target)
    {
        $this->getAttributes()->set('data-base-target', $target);

        return $this;
    }
}