label; } /** * @param string $label * * @return ActionInterface */ public function setLabel($label) { $this->label = $label; return $this; } /** * @return int */ public function getType() { return $this->type; } /** * @param int $type * * @return ActionInterface * @throws \InvalidArgumentException */ public function setType($type) { if ($type <= 0 || $type > 4) { throw new \InvalidArgumentException('The given type option is invalid'); } $this->type = $type; return $this; } /** * @return string */ public function getLink() { return $this->link; } /** * @param string $link * * @return ActionInterface */ public function setLink($link) { $this->link = $link; return $this; } }