Skip to content

Instantly share code, notes, and snippets.

@cakper
Created October 17, 2014 12:16
Show Gist options
  • Save cakper/29e002f136e27cecd4fd to your computer and use it in GitHub Desktop.
Save cakper/29e002f136e27cecd4fd to your computer and use it in GitHub Desktop.
<?php
namespace Dcwroc\TaskBundle\Entity;
class Task
{
private $name;
private $dueDate;
private $completed = false;
/**
* @return boolean
*/
public function isCompleted()
{
return $this->completed;
}
/**
* @param boolean $completed
*/
public function setCompleted($completed)
{
$this->completed = $completed;
}
/**
* @return mixed
*/
public function getDueDate()
{
return $this->dueDate;
}
/**
* @param mixed $dueDate
*/
public function setDueDate($dueDate)
{
$this->dueDate = $dueDate;
}
/**
* @return mixed
*/
public function getName()
{
return $this->name;
}
/**
* @param mixed $name
*/
public function setName($name)
{
$this->name = $name;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment