Rapsys Git
/
airbundle
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add faq route
[airbundle]
/
Entity
/
Application.php
diff --git
a/Entity/Application.php
b/Entity/Application.php
index a31aa92e966d0205b70f8c08398c14764ee1375d..af4d3a9054077551a6a48e2353e3544fa62c6ea3 100644
(file)
--- a/
Entity/Application.php
+++ b/
Entity/Application.php
@@
-12,24
+12,24
@@
class Application {
private $id;
/**
private $id;
/**
- * @var
\DateTime
+ * @var
float
*/
*/
- private $
created
;
+ private $
score
;
/**
* @var \DateTime
*/
/**
* @var \DateTime
*/
- private $updated;
-
-
- //TODO: ajouter un champ score à replir lors de l'attribution d'une session
- //XXX: champ float avec une bonne capacité en décimale
+ private $canceled;
+ /**
+ * @var \DateTime
+ */
+ private $created;
/**
/**
- * @var \D
octrine\Common\Collections\Collection
+ * @var \D
ateTime
*/
*/
- private $
votes
;
+ private $
updated
;
/**
* @var \Rapsys\AirBundle\Entity\Session
/**
* @var \Rapsys\AirBundle\Entity\Session
@@
-41,13
+41,6
@@
class Application {
*/
private $user;
*/
private $user;
- /**
- * Constructor
- */
- public function __construct() {
- $this->votes = new \Doctrine\Common\Collections\ArrayCollection();
- }
-
/**
* Get id
*
/**
* Get id
*
@@
-58,78
+51,91
@@
class Application {
}
/**
}
/**
- * Set
created
+ * Set
score
*
*
- * @param
\DateTime $created
+ * @param
float $score
*
* @return Application
*/
*
* @return Application
*/
- public function set
Created($created
) {
- $this->
created = $created
;
+ public function set
Score($score
) {
+ $this->
score = $score
;
return $this;
}
/**
return $this;
}
/**
- * Get
created
+ * Get
score
*
*
- * @return
\DateTime
+ * @return
float
*/
*/
- public function get
Created
() {
- return $this->
created
;
+ public function get
Score
() {
+ return $this->
score
;
}
/**
}
/**
- * Set
updat
ed
+ * Set
cancel
ed
*
*
- * @param \DateTime $
updat
ed
+ * @param \DateTime $
cancel
ed
*
* @return Application
*/
*
* @return Application
*/
- public function set
Updated($updat
ed) {
- $this->
updated = $updat
ed;
+ public function set
Canceled($cancel
ed) {
+ $this->
canceled = $cancel
ed;
return $this;
}
/**
return $this;
}
/**
- * Get
updat
ed
+ * Get
cancel
ed
*
* @return \DateTime
*/
*
* @return \DateTime
*/
- public function get
Updat
ed() {
- return $this->
updat
ed;
+ public function get
Cancel
ed() {
+ return $this->
cancel
ed;
}
/**
}
/**
- *
Add vote
+ *
Set created
*
*
- * @param \
Rapsys\AirBundle\Entity\Vote $vote
+ * @param \
DateTime $created
*
* @return Application
*/
*
* @return Application
*/
- public function
addVote(\Rapsys\AirBundle\Entity\Vote $vote
) {
- $this->
votes[] = $vote
;
+ public function
setCreated($created
) {
+ $this->
created = $created
;
return $this;
}
/**
return $this;
}
/**
- *
Remove vote
+ *
Get created
*
*
- * @
param \Rapsys\AirBundle\Entity\Vote $vot
e
+ * @
return \DateTim
e
*/
*/
- public function
removeVote(\Rapsys\AirBundle\Entity\Vote $vote
) {
-
$this->votes->removeElement($vote)
;
+ public function
getCreated(
) {
+
return $this->created
;
}
/**
}
/**
- *
Get votes
+ *
Set updated
*
*
- * @return \Doctrine\Common\Collections\Collection
+ * @param \DateTime $updated
+ *
+ * @return Application
*/
*/
- public function getVotes() {
- return $this->votes;
+ public function setUpdated($updated) {
+ $this->updated = $updated;
+
+ return $this;
+ }
+
+ /**
+ * Get updated
+ *
+ * @return \DateTime
+ */
+ public function getUpdated() {
+ return $this->updated;
}
/**
}
/**