for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PhpSchool\CliMenu\Style;
trait ItemStyleTrait
{
/**
* @var string
*/
protected $markerOn;
protected $markerOff;
protected $itemExtra;
* @var bool
protected $displaysExtra;
protected $custom = false;
public function getIsCustom() : bool
return $this->custom;
}
public function getMarker(bool $selected) : string
return $selected ? $this->markerOn : $this->markerOff;
public function getMarkerOn() : string
return $this->markerOn;
public function setMarkerOn(string $marker) : self
$this->custom = true;
$this->markerOn = $marker;
return $this;
public function getMarkerOff() : string
return $this->markerOff;
public function setMarkerOff(string $marker) : self
$this->markerOff = $marker;
public function getItemExtra() : string
return $this->itemExtra;
public function setItemExtra(string $itemExtra) : self
$this->itemExtra = $itemExtra;
public function getDisplaysExtra() : bool
return $this->displaysExtra;
public function setDisplaysExtra(bool $displaysExtra) : self
$this->displaysExtra = $displaysExtra;