add carbon lib for date operations

This commit is contained in:
DavidBadura
2015-02-08 11:23:14 +00:00
parent eee7c668cc
commit 9ed7f6ff7c
6 changed files with 185 additions and 34 deletions

View File

@@ -16,6 +16,11 @@ class Taskwarrior
*/
private $rcOptions;
/**
* @var string
*/
private $version;
/**
* @param string $taskrc
* @param string $taskData
@@ -56,7 +61,7 @@ class Taskwarrior
*/
public function add(array $params)
{
$this->command('modify', null, $this->getOptions($params));
$this->command('add', null, $this->getOptions($params));
}
/**
@@ -173,7 +178,11 @@ class Taskwarrior
*/
public function version()
{
return $this->command('_version');
if ($this->version) {
return $this->version;
}
return $this->version = $this->command('_version');
}
/**