the browser-facing portion of osu!
at master 25 lines 574 B view raw
1<?php 2 3// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0. 4// See the LICENCE file in the repository root for full licence text. 5 6namespace App\Libraries\Markdown\StyleBlock; 7 8use League\CommonMark\Node\Block\AbstractBlock; 9 10class Element extends AbstractBlock 11{ 12 private string $className; 13 14 public function __construct(string $className) 15 { 16 parent::__construct(); 17 18 $this->className = $className; 19 } 20 21 public function getClassName(): string 22 { 23 return $this->className; 24 } 25}