3 namespace Mixstore\StoreBundle\Entity
;
5 use Doctrine\ORM\Mapping
as ORM
;
6 use Symfony\Component\Validator\Constraints
as Assert
;
12 * @ORM\Entity(repositoryClass="Mixstore\StoreBundle\Entity\UsecaseRepository")
19 * @ORM\Column(name="id", type="integer")
21 * @ORM\GeneratedValue(strategy="AUTO")
26 * @ORM\Column(type="datetime")
32 * @ORM\Column(type="datetime")
38 * @ORM\Column(type="string")
44 * @ORM\Column(type="string")
47 private $headline; //titre du usecase
50 * @ORM\Column(type="text")
56 * @ORM\Column(type="string")
60 private $contact; //un email
63 * @ORM\ManyToOne(targetEntity="Mixstore\UserBundle\Entity\User")
64 * @ORM\JoinColumn(nullable=false)
66 private $user; //owner of the usecase: "webmaster"...
69 * @ORM\Column(type="decimal")
72 private $grade; //from 0 to 10 (integer, in fact)
75 * @ORM\ManyToOne(targetEntity="Mixstore\StoreBundle\Entity\Package")
76 * @ORM\JoinColumn(nullable=false)
80 public function __construct()
84 $this->created
= new \
DateTime("now");
85 $this->modified
= new \
DateTime("now");
93 public function getId()
101 * @param string $institution
104 public function setInstitution($institution)
106 $this->institution
= $institution;
116 public function getInstitution()
118 return $this->institution
;
124 * @param string $description
127 public function setDescription($description)
129 $this->description
= $description;
139 public function getDescription()
141 return $this->description
;
147 * @param string $contact
150 public function setContact($contact)
152 $this->contact
= $contact;
162 public function getContact()
164 return $this->contact
;
170 * @param \Mixstore\UserBundle\Entity\User $user
173 public function setUser(\Mixstore\UserBundle\Entity\User
$user)
183 * @return \Mixstore\UserBundle\Entity\User
185 public function getUser()
193 * @param string $headline
196 public function setHeadline($headline)
198 $this->headline
= $headline;
208 public function getHeadline()
210 return $this->headline
;
216 * @param \Mixstore\StoreBundle\Entity\Package $package
219 public function setPackage(\Mixstore\StoreBundle\Entity\Package
$package)
221 $this->package
= $package;
229 * @return \Mixstore\StoreBundle\Entity\Package
231 public function getPackage()
233 return $this->package
;
239 * @param boolean $happy
242 public function setGrade($grade)
244 $this->grade
= $grade;
254 public function getGrade()
262 * @param \DateTime $created
265 public function setCreated($created)
267 $this->created
= $created;
277 public function getCreated()
279 return $this->created
;
285 * @param \DateTime $modified
288 public function setModified($modified)
290 $this->modified
= $modified;
300 public function getModified()
302 return $this->modified
;