You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
380 B
17 lines
380 B
<?php
|
|
/** @license MIT
|
|
* Copyright 2018 J. King et al.
|
|
* See LICENSE and AUTHORS files for details */
|
|
|
|
declare(strict_types=1);
|
|
namespace JKingWeb\Lax\Category;
|
|
|
|
class Category {
|
|
public $name = "";
|
|
public $label = "";
|
|
public $domain = "";
|
|
|
|
public function __toString() {
|
|
return strlen(strlen((string) $this->label)) ? $this->label : $this->name;
|
|
}
|
|
}
|
|
|