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