Commit 9e9ab7fb authored by Jonathan.Wage's avatar Jonathan.Wage

Added documentation.

parent 37ffee97
...@@ -36,11 +36,23 @@ class Doctrine_Cli ...@@ -36,11 +36,23 @@ class Doctrine_Cli
protected $scriptName = null; protected $scriptName = null;
protected $config = array(); protected $config = array();
/**
* __construct
*
* @param string $config
* @return void
*/
public function __construct($config = array()) public function __construct($config = array())
{ {
$this->config = $config; $this->config = $config;
} }
/**
* run
*
* @param string $args
* @return void
*/
public function run($args) public function run($args)
{ {
$this->scriptName = $args[0]; $this->scriptName = $args[0];
...@@ -71,6 +83,13 @@ class Doctrine_Cli ...@@ -71,6 +83,13 @@ class Doctrine_Cli
} }
} }
/**
* prepareArgs
*
* @param string $taskInstance
* @param string $args
* @return void
*/
protected function prepareArgs($taskInstance, $args) protected function prepareArgs($taskInstance, $args)
{ {
$args = array_values($args); $args = array_values($args);
...@@ -110,6 +129,11 @@ class Doctrine_Cli ...@@ -110,6 +129,11 @@ class Doctrine_Cli
return $prepared; return $prepared;
} }
/**
* printTasks
*
* @return void
*/
public function printTasks() public function printTasks()
{ {
$tasks = $this->loadTasks(); $tasks = $this->loadTasks();
...@@ -161,6 +185,12 @@ class Doctrine_Cli ...@@ -161,6 +185,12 @@ class Doctrine_Cli
} }
} }
/**
* loadTasks
*
* @param string $directory
* @return void
*/
public function loadTasks($directory = null) public function loadTasks($directory = null)
{ {
if ($directory === null) { if ($directory === null) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment