src/Cart/Product.php
public function attributes($attributes = null)
    {
        if (null === $attributes) {
            return $this->attributes;
        }

        $this->attributes = $attributes;

        return $this;
    }
public function attributes($attributes = null)
    {
        if (null === $attributes) {
            return $this->attributes;
        }

        $this->attributes = $attributes;

        return $this;
    }
public function attributes ( $ attributes = null ) { if ( null === $ attributes ) { return $ this -> attributes ; } $ this -> attributes = $ attributes ; return $ this ; }
To Check if Cart Product Has Attributes.
@param array $attributes
@return self|array
To Check if Cart Product Has Attributes .