Add __toString magic method
- /**
- * @var string
- */
- protected $short;
-
- /**
- * Set short
- *
- * @param string $short
- *
- * @return Title
- */
- public function setShort($short) {
- $this->short = $short;
-
- return $this;
- }
-
- /**
- * Get short
- *
- * @return string
- */
- public function getShort() {
- return $this->short;
- }
-
public function getUsers() {
return $this->users;
}
public function getUsers() {
return $this->users;
}
+
+ /**
+ * Returns a string representation of the title
+ *
+ * @return string
+ */
+ public function __toString(): string {
+ return $this->title;
+ }
options:
unsigned: true
fields:
options:
unsigned: true
fields:
- short:
- type: string
- length: 4
title:
type: string
length: 16
title:
type: string
length: 16