mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-01 04:23:49 +00:00
add an "active" field on activity type
This commit is contained in:
@@ -34,6 +34,8 @@ class ActivityType
|
||||
* @var array
|
||||
*/
|
||||
private $name;
|
||||
|
||||
private $active = true;
|
||||
|
||||
|
||||
/**
|
||||
@@ -82,5 +84,41 @@ class ActivityType
|
||||
return $this->name;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* get active
|
||||
*
|
||||
* return true if the type is active.
|
||||
*
|
||||
* @return boolean true if the type is active
|
||||
*/
|
||||
public function getActive() {
|
||||
return $this->active;
|
||||
}
|
||||
|
||||
/**
|
||||
* get active
|
||||
*
|
||||
* return true if the type is active
|
||||
*
|
||||
* @return boolean true if the type is active
|
||||
*/
|
||||
public function isActive() {
|
||||
return $this->getActive();
|
||||
}
|
||||
|
||||
/**
|
||||
* set active
|
||||
*
|
||||
* set to true if the type is active
|
||||
*
|
||||
* @param boolean $active
|
||||
* @return \Chill\ActivityBundle\Entity\ActivityType
|
||||
*/
|
||||
public function setActive($active) {
|
||||
$this->active = $active;
|
||||
return $this;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user