mmi-correction-tp03/classes/class.Participant.php
2015-04-07 19:11:26 +02:00

33 lines
552 B
PHP

<?php
class Participant extends Personne
{
/**
* @var string $image Image
*/
protected $image;
/**
* @param string $image
* @return Participant
*/
public function setImage($image)
{
if ('' === trim((string) $image)) {
throw new InvalidArgumentException('L\'image ne peut pas être vide.');
}
$this->image = $image;
return $this;
}
/**
* @return string|null
*/
public function getImage()
{
return $this->image;
}
}