/** * @param string $name * @param SortingDirection $order * @param string $label * @param string $url * @param bool $isSelected */ public function __construct($name, SortingDirection $order, $label, $url, $isSelected = false) { parent::__construct($label, $url, $isSelected); $this->name = (string) $name; $this->order = $order; }
/** * @param string $label * @param string $url * @param bool $isSelected * @param BreadCrumbType $type * @param string $fieldName Only for filter-type items. The field by which * was filtered. */ public function __construct($label, $url, $isSelected = false, BreadCrumbType $type = null, $fieldName = '') { parent::__construct($label, $url, $isSelected); $this->type = $type ?: BreadCrumbType::Search(); $this->fieldName = (string) $fieldName; }