account_icon.php 466 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. class AccountIcon {
  3. public $name = "";
  4. public $icon = "";
  5. public $url = "";
  6. /** @var int */
  7. public $counter = 0;
  8. /** @var string */
  9. public $buttonClass = "btn-light";
  10. public function __construct($name, $url, $icon) {
  11. $this->name = $name;
  12. $this->icon = $icon;
  13. $this->url = $url;
  14. }
  15. public function setCounter($counter) {
  16. $this->counter = $counter;
  17. }
  18. public function setButtonClass(string $class) {
  19. $this->buttonClass = $class;
  20. }
  21. }