Merge branch 'php' of https://codefirst.iut.uca.fr/git/antoine.jourdain/SAE_2A_Anglais into php
commit
b0d83e2d49
@ -1,24 +0,0 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in new issue