| 1 | <?php |
||
| 8 | abstract class AbstractStrategy implements StrategyInterface |
||
| 9 | { |
||
| 10 | |||
| 11 | /** |
||
| 12 | * Strategy name |
||
| 13 | * |
||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | protected $name; |
||
| 17 | |||
| 18 | |||
| 19 | /** |
||
| 20 | * {@inheritdoc} |
||
| 21 | */ |
||
| 22 | abstract public function handle($args); |
||
| 23 | |||
| 24 | |||
| 25 | /** |
||
| 26 | * {@inheritdoc} |
||
| 27 | */ |
||
| 28 | public function getName() |
||
| 36 | |||
| 37 | |||
| 38 | /** |
||
| 39 | * {@inheritdoc} |
||
| 40 | */ |
||
| 41 | public function setName($name = null) |
||
| 52 | |||
| 53 | protected function argGet($ary = [], $key, $default = null) |
||
| 57 | } |
||
| 58 |