From: Raphaƫl Gertz Date: Wed, 11 Dec 2019 04:24:37 +0000 (+0100) Subject: Add short field and related methods X-Git-Url: https://git.rapsys.eu/airbundle/commitdiff_plain/0a1451a2d6fd431123e3deab886057a56dbdf1b4 Add short field and related methods Add __toString magic method Cleanup --- diff --git a/Entity/Title.php b/Entity/Title.php index 54a6a60..e6cc9e8 100644 --- a/Entity/Title.php +++ b/Entity/Title.php @@ -1,7 +1,41 @@ short = $short; + + return $this; + } + + /** + * Get short + * + * @return string + */ + public function getShort() { + return $this->short; + } + + /** + * Returns a string representation of the title + * + * @return string + */ + public function __toString(): string { + return $this->short; + } }