From 2352dd162aacb6222aff7523aef4169223fe37a0 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Fri, 16 Jan 2009 04:31:41 +0000 Subject: Break task definitions out into the _task helper and create a Task library class as a data structure to hold task definitions. --- core/libraries/Task.php | 51 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 core/libraries/Task.php (limited to 'core/libraries/Task.php') diff --git a/core/libraries/Task.php b/core/libraries/Task.php new file mode 100644 index 00000000..8145c512 --- /dev/null +++ b/core/libraries/Task.php @@ -0,0 +1,51 @@ +callback = $callback; + return $this; + } + + function description($description) { + $this->description = $description; + return $this; + } + + function name($name) { + $this->name = $name; + return $this; + } + + function severity($severity) { + $this->severity = $severity; + return $this; + } + +} -- cgit v1.2.3