add an "active" field on activity type

This commit is contained in:
2016-11-14 23:00:13 +01:00
parent 79dd4bfac8
commit 5dda66342a
8 changed files with 116 additions and 31 deletions

View File

@@ -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;
}
}