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
501 B
25 lines
501 B
<?php
|
|
|
|
namespace Vocabulary;
|
|
|
|
class Vocabulary
|
|
{
|
|
protected frozen String $id;
|
|
protected String $nom;
|
|
protected Picture $picture;
|
|
protected frozen 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;
|
|
}
|
|
}
|
|
|