Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php defined('SYSPATH') OR die('No direct script access.'); |
||
62 | 28 | public function param($name, $value = NULL) |
|
63 | 28 | { |
|
64 | if ($value === NULL) |
||
65 | 28 | { |
|
66 | return Arr::get($this->params, $name, NULL); |
||
67 | 28 | } |
|
68 | |||
69 | if (array_search($name, self::$available_params) === FALSE) |
||
70 | 2 | throw new Migration_Driver_Exception_Params($name); |
|
71 | |||
72 | 2 | $this->params[$name] = $value; |
|
73 | 2 | return $this; |
|
74 | 2 | } |
|
75 | |||
81 |