public function setActions($actions) { if (!$actions) { $actions = new Tool\Targeting\Rule\Actions(); } $this->actions = $actions; return $this; }