Rapsys Git
/
userbundle
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove Title entity short field and related methods
[userbundle]
/
Entity
/
Title.php
diff --git
a/Entity/Title.php
b/Entity/Title.php
index 5a2b68515e3c0261d3ae0c285352c4fd90c32e1f..bcaf7858c56a82db19f2b4492045abb58b4a2d3c 100644
(file)
--- a/
Entity/Title.php
+++ b/
Entity/Title.php
@@
-11,11
+11,6
@@
class Title {
*/
protected $id;
*/
protected $id;
- /**
- * @var string
- */
- protected $short;
-
/**
* @var string
*/
/**
* @var string
*/
@@
-52,28
+47,6
@@
class Title {
return $this->id;
}
return $this->id;
}
- /**
- * 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;
- }
-
/**
* Set title
*
/**
* Set title
*
@@
-170,4
+143,13
@@
class Title {
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;
+ }
}
}