protected function setTrackAttribute($items)
    {
        if ( ! is_array($items))
        {
            return $items;
        }

        return array_map(function ($item) {
            return $this->getNestedContext(MusicRecording::class, $item);
        }, $items);
    }
protected function setTrackAttribute($items)
    {
        if ( ! is_array($items))
        {
            return $items;
        }

        return array_map(function ($item) {
            return $this->getNestedContext(MusicRecording::class, $item);
        }, $items);
    }
protected function setTrackAttribute ( $ items ) { if ( ! is_array ( $ items ) ) { return $ items ; } return array_map ( function ( $ item ) { return $ this -> getNestedContext ( MusicRecording :: class , $ item ) ; } , $ items ) ; }
Set the tracks for a music group

@param array $items
@return array
Set the tracks for a music group