DerDu/SPHERE-Framework

View on GitHub
Common/Frontend/Link/Repository/Danger.php

Summary

Maintainability
A
35 mins
Test Coverage
<?php
namespace SPHERE\Common\Frontend\Link\Repository;

use SPHERE\Common\Frontend\Icon\IIconInterface;
use SPHERE\Common\Frontend\Link\ILinkInterface;

/**
 * Class Danger
 *
 * @package SPHERE\Common\Frontend\Link\Repository
 */
class Danger extends AbstractLink implements ILinkInterface
{

    /**
     * Danger constructor.
     *
     * Without authorization the link will not be displayed
     *
     * @param string              $Name
     * @param string              $Path
     * @param IIconInterface|null $Icon
     * @param array               $Data
     * @param bool|string         $ToolTip
     */
    public function __construct($Name, $Path, IIconInterface $Icon = null, $Data = array(), $ToolTip = false)
    {

        $this->setType(self::TYPE_DANGER);
        parent::__construct($Name, $Path, $Icon, $Data, $ToolTip);
    }
}