Skip to content
Snippets Groups Projects

New property to Facility model: description

Merged Pavel Břoušek requested to merge github/fork/BaranekD/description into master
3 files
+ 14
2
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 12
1
@@ -9,18 +9,21 @@ class sspmod_perun_model_Facility implements sspmod_perun_model_HasId
@@ -9,18 +9,21 @@ class sspmod_perun_model_Facility implements sspmod_perun_model_HasId
{
{
private $id;
private $id;
private $name;
private $name;
 
private $description;
private $entityId;
private $entityId;
/**
/**
* sspmod_perun_model_Vo constructor.
* sspmod_perun_model_Vo constructor.
* @param int $id
* @param int $id
* @param string $name
* @param string $name
 
* @param string $description
* @param string $shortName
* @param string $shortName
*/
*/
public function __construct($id, $name, $entityId)
public function __construct($id, $name, $description, $entityId)
{
{
$this->id = $id;
$this->id = $id;
$this->name = $name;
$this->name = $name;
 
$this->description = $description;
$this->entityId = $entityId;
$this->entityId = $entityId;
}
}
@@ -37,6 +40,14 @@ class sspmod_perun_model_Facility implements sspmod_perun_model_HasId
@@ -37,6 +40,14 @@ class sspmod_perun_model_Facility implements sspmod_perun_model_HasId
return $this->name;
return $this->name;
}
}
 
/**
 
* @return string
 
*/
 
public function getDescription()
 
{
 
return $this->description;
 
}
 
/**
/**
* @return string
* @return string
*/
*/
Loading