add priority

This commit is contained in:
DavidBadura
2015-02-06 17:05:29 +00:00
parent c2983029ce
commit b81cad6243
4 changed files with 55 additions and 1 deletions

View File

@@ -14,6 +14,10 @@ class Task
const STATUS_DELETED = 'deleted';
const STATUS_WAITING = 'waiting';
const PRIORITY_LOW = 'L';
const PRIORITY_MEDIUM = 'M';
const PRIORITY_HIGH = 'H';
/**
* @var string
*
@@ -28,6 +32,13 @@ class Task
*/
private $description;
/**
* @var string
*
* @JMS\Type(name="string")
*/
private $priority;
/**
* @var string
*
@@ -97,6 +108,22 @@ class Task
$this->description = $description;
}
/**
* @return string
*/
public function getPriority()
{
return $this->priority;
}
/**
* @param string $priority
*/
public function setPriority($priority)
{
$this->priority = $priority;
}
/**
* @return string
*/