CartItem::fullTitle PHP Method

fullTitle() public method

public fullTitle ( ) : string
return string sku - name - variant - option
    public function fullTitle()
    {
        $title = '';
        if ($this->sku) {
            $title .= $this->sku . ' - ';
        }
        $title .= $this->name;
        if ($this->variant) {
            $title .= ' - ' . $this->variant;
        }
        if ($this->option) {
            $title .= ' - ' . $this->option;
        }
        return $title;
    }