Rapsys Git
/
airbundle
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix header comment
[airbundle]
/
Entity
/
Application.php
diff --git
a/Entity/Application.php
b/Entity/Application.php
index 4e94f204fe63f289d359f26d84187b9d033a1067..b2672a19aa898ff58a383fed4bb273c27fe7e957 100644
(file)
--- a/
Entity/Application.php
+++ b/
Entity/Application.php
@@
-1,11
+1,11
@@
<?php declare(strict_types=1);
/*
<?php declare(strict_types=1);
/*
- *
this file is part of the rapsys packb
undle package.
+ *
This file is part of the Rapsys AirB
undle package.
*
*
- * (c)
raphaël g
ertz <symfony@rapsys.eu>
+ * (c)
Raphaël G
ertz <symfony@rapsys.eu>
*
*
- *
for the full copyright and license information, please view the license
+ *
For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
* file that was distributed with this source code.
*/
@@
-18,56
+18,52
@@
use Doctrine\ORM\Event\PreUpdateEventArgs;
*/
class Application {
/**
*/
class Application {
/**
- *
@var integer
+ *
Primary key
*/
*/
- private
$id
;
+ private
?int $id = null
;
/**
/**
- *
@var D
ance
+ *
Dance inst
ance
*/
*/
- private $dance;
+ private
Dance
$dance;
/**
/**
- *
@var float
+ *
Score
*/
*/
- private
$score
;
+ private
?float $score = null
;
/**
/**
- *
@var \DateT
ime
+ *
Cancel datet
ime
*/
*/
- private
$canceled
;
+ private
?\DateTime $canceled = null
;
/**
/**
- *
@var \DateT
ime
+ *
Create datet
ime
*/
*/
- private $created;
+ private
\DateTime
$created;
/**
/**
- *
@var \DateT
ime
+ *
Update datet
ime
*/
*/
- private $updated;
+ private
\DateTime
$updated;
/**
/**
- *
@var \Rapsys\AirBundle\Entity\Session
+ *
Session instance
*/
*/
- private $session;
+ private $session
= null
;
/**
/**
- *
@var \Rapsys\AirBundle\Entity\User
+ *
User instance
*/
*/
- private $user;
+ private $user
= null
;
/**
* Constructor
*/
public function __construct() {
//Set defaults
/**
* Constructor
*/
public function __construct() {
//Set defaults
- $this->score = null;
- $this->canceled = null;
$this->created = new \DateTime('now');
$this->updated = new \DateTime('now');
$this->created = new \DateTime('now');
$this->updated = new \DateTime('now');
- $this->session = null;
- $this->user = null;
}
/**
}
/**
@@
-75,7
+71,7
@@
class Application {
*
* @return integer
*/
*
* @return integer
*/
- public function getId(): int {
+ public function getId():
?
int {
return $this->id;
}
return $this->id;
}