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.
47 lines
863 B
47 lines
863 B
<?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 ;
|
|
}
|
|
|
|
} |