parent
bf79d32cf2
commit
96fa394534
@ -1,47 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
class SourceEntity
|
|
||||||
{
|
|
||||||
private int $id_source;
|
|
||||||
|
|
||||||
private string $title;
|
|
||||||
|
|
||||||
private string $date;
|
|
||||||
|
|
||||||
public function __construct(int $id_source, string $title, string $date)
|
|
||||||
{
|
|
||||||
$this -> id_source = $id_source ;
|
|
||||||
$this -> title = $title ;
|
|
||||||
$this -> date = $date;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getIdSource() : int
|
|
||||||
{
|
|
||||||
return $this -> id_source ;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getTitle() : string
|
|
||||||
{
|
|
||||||
return $this -> title ;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getDate() : string
|
|
||||||
{
|
|
||||||
return $this -> date ;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setIdSource(int $id_source) : void
|
|
||||||
{
|
|
||||||
$this -> id_source = $id_source ;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setTitle(string $title): void{
|
|
||||||
$this -> title = $title ;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setDate(string $date) : void
|
|
||||||
{
|
|
||||||
$this -> date = $date ;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
Loading…
Reference in new issue