disabled = $disable; return $this; } /** * If the tool is allowed. */ public function allowed() { return !$this->disabled; } /** * Set parent grid. * * @param Grid $grid * * @return $this */ public function setGrid(Grid $grid) { $this->grid = $grid; return $this; } /** * {@inheritdoc} */ abstract public function render(); /** * @return string */ public function __toString() { return $this->render(); } }