protected function getPriceListAttribute()
    {
        $arResult = [];

        foreach ($this->price_link as $obPrice) {
            $arResult[$obPrice->price_type_id] = [
                'price'     => $obPrice->price,
                'old_price' => $obPrice->old_price,
            ];
        }

        return $arResult;
    }
protected function getPriceListAttribute()
    {
        $arResult = [];

        foreach ($this->price_link as $obPrice) {
            $arResult[$obPrice->price_type_id] = [
                'price'     => $obPrice->price,
                'old_price' => $obPrice->old_price,
            ];
        }

        return $arResult;
    }
protected function getPriceListAttribute ( ) { $ arResult = [ ] ; foreach ( $ this -> price_link as $ obPrice ) { $ arResult [ $ obPrice -> price_type_id ] = [ 'price' => $ obPrice -> price , 'old_price' => $ obPrice -> old_price , ] ; } return $ arResult ; }
Get price_list attribute
@return array
Get price_list attribute