"plugin/git@forgeb1.univ-lehavre.fr:khraimes/cours.git" n'existait pas sur "67507ccb9d12d9d1583c362ce079fb817c6faa68"
Newer
Older
use ApiPlatform\Core\Annotation\Property;
use ApiPlatform\Core\Annotation\Resource;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* A book.
* @ORM\Column(type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var ArrayCollection<Person> The author of this content. Please note that author is special in that HTML 5 provides a special mechanism for indicating authorship via the rel tag. That is equivalent to this and may be used interchangeably.
* @ORM\ManyToMany(targetEntity="AppBundle\Entity\Person")
* @Property(iri="http://schema.org/author")
private $author;
/**
* @var \DateTime Date of first broadcast/publication.
*
* @ORM\Column(type="date", nullable=true)
* @Assert\Date
* @Property(iri="http://schema.org/datePublished")
*/
private $datePublished;
/**
* @var string A short description of the item.
*
* @ORM\Column(nullable=true)
* @Assert\Type(type="string")
* @Property(iri="http://schema.org/description")
*/
private $description;
/**
* @var string Genre of the creative work or group.
*
* @ORM\Column(nullable=true)
* @Assert\Type(type="string")
* @Property(iri="http://schema.org/genre")
*/
private $genre;
* @ORM\Column(nullable=true)
* @Assert\Type(type="string")
/**
* @var string The name of the item.
*
* @ORM\Column(nullable=true)
* @Assert\Type(type="string")
* @Property(iri="http://schema.org/name")
*/
private $name;
* @ORM\Column(type="integer", nullable=true)
* @Assert\Type(type="integer")
* @Property(iri="http://schema.org/numberOfPages")
/**
* @var Organization The publisher of the creative work.
*
* @ORM\OneToOne(targetEntity="AppBundle\Entity\Organization")
* @Property(iri="http://schema.org/publisher")
*/
private $publisher;
* @return $this
*/
public function setId($id)
{
$this->id = $id;
return $this;
}
/**
* Gets id.
* @return int
*/
public function getId()
{
return $this->id;
}
/**
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
return $this->author;
}
/**
* Sets datePublished.
*
* @param \DateTime $datePublished
*
* @return $this
*/
public function setDatePublished(\DateTime $datePublished = null)
{
$this->datePublished = $datePublished;
return $this;
}
/**
* Gets datePublished.
*
* @return \DateTime
*/
public function getDatePublished()
{
return $this->datePublished;
}
/**
* Sets description.
*
* @param string $description
*
* @return $this
*/
public function setDescription($description)
{
$this->description = $description;
return $this;
}
/**
* Gets description.
*
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Sets genre.
*
* @param string $genre
*
* @return $this
*/
public function setGenre($genre)
{
$this->genre = $genre;
return $this;
}
/**
* Gets genre.
*
* @return string
*/
public function getGenre()
{
return $this->genre;
* @return $this
*/
public function setIsbn($isbn)
{
$this->isbn = $isbn;
return $this;
}
/**
* Gets isbn.
* @return string
*/
public function getIsbn()
{
return $this->isbn;
}
/**
* Sets name.
*
* @param string $name
*
* @return $this
*/
public function setName($name)
{
$this->name = $name;
return $this;
}
/**
* Gets name.
*
* @return string
*/
public function getName()
{
return $this->name;
}
* @return $this
*/
public function setNumberOfPages($numberOfPages)
{
$this->numberOfPages = $numberOfPages;
return $this;
}
/**
* Gets numberOfPages.
* @return int
*/
public function getNumberOfPages()
{
return $this->numberOfPages;
}
/**
* Sets publisher.
*
* @param Organization $publisher
*
* @return $this
*/
public function setPublisher(Organization $publisher = null)
{
$this->publisher = $publisher;
return $this;
}
/**
* Gets publisher.
*
* @return Organization
*/
public function getPublisher()
{
return $this->publisher;
}