* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace TimesheetBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * Activity * * @ORM\Table(name="activities") * @ORM\Entity(repositoryClass="TimesheetBundle\Repository\ActivityRepository") * * @author Kevin Papst */ class Activity { /** * @var integer * * @ORM\Column(name="activityID", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="IDENTITY") */ private $activityid; /** * @var string * * @ORM\Column(name="name", type="string", length=255, nullable=false) */ private $name; /** * @var string * * @ORM\Column(name="comment", type="text", length=65535, nullable=true) */ private $comment; /** * @var boolean * * @ORM\Column(name="visible", type="boolean", nullable=false) */ private $visible = '1'; /** * Set name * * @param string $name * * @return Activity */ public function setName($name) { $this->name = $name; return $this; } /** * Get name * * @return string */ public function getName() { return $this->name; } /** * Set comment * * @param string $comment * * @return Activity */ public function setComment($comment) { $this->comment = $comment; return $this; } /** * Get comment * * @return string */ public function getComment() { return $this->comment; } /** * Set visible * * @param boolean $visible * * @return Activity */ public function setVisible($visible) { $this->visible = $visible; return $this; } /** * Get visible * * @return boolean */ public function getVisible() { return $this->visible; } /** * Get activityid * * @return integer */ public function getActivityId() { return $this->activityid; } }