This commit is contained in:
apuc committed 2024-07-24 17:22:59 +03:00
commit f005cb357b
13 files changed
+258 -50

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
<?php
namespace kernel\IGTabel\btn;
class PrimaryBtn
{
protected string $btn = '';
public function __construct(string $title, string $url)
{
$this->btn = "<a class='btn btn-primary' href='$url' style='margin: 3px; width: 100px;' >$title</a>";
}
public function fetch(): string
{
return $this->btn;
}
public static function create(string $title, string $url): PrimaryBtn
{
return new self($title, $url);
}
}