App\Source\Composite\MenuLink::__construct PHP 메소드

__construct() 공개 메소드

Creates a hyperlink
public __construct ( $text, string $url, array $attributes = [] ) : void
$url string
$attributes array
리턴 void
    public function __construct($text, $url, $attributes = array())
    {
        $this->text = $text;
        $this->url = $url;
        if (is_array($attributes)) {
            $this->attributes($attributes);
        }
    }