You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
496 B
25 lines
496 B
<?php
|
|
|
|
namespace model;
|
|
|
|
class Vocabulary
|
|
{
|
|
frozen protected String $id;
|
|
protected String $nom;
|
|
protected Picture $picture;
|
|
frozen protected User $creator;
|
|
|
|
public function __construct(string $id, string $nom, Picture $picture, user $creator)
|
|
{
|
|
$this->id = $id;
|
|
$this->nom = $nom;
|
|
$this->picture = $picture;
|
|
$this->creator = $creator;
|
|
}
|
|
|
|
protected function changePicture(Picture $newImg){
|
|
$this->picture = $newImg;
|
|
}
|
|
}
|
|
|