/** * Get the value. * * @return string */ public function getValue() { if ($this->entry instanceof DiskInterface) { return '<i class="' . $this->icons->get('server') . '"></i>'; } if ($this->entry instanceof FolderInterface) { return '<i class="' . $this->icons->get('folder-closed') . '"></i>'; } }
/** * Handle the command. * * @param IconRegistry $registry * @return string */ public function handle(IconRegistry $registry) { return (new Icon())->setType($registry->get($this->type))->setClass($this->class); }