/** * @param AbstractType $trackType * @param array $attributes */ private function addAttributes(AbstractType $trackType, $attributes) { foreach ($this->sanitizeAttributes($attributes) as $attribute => $value) { if ($attribute[0] === '@') { continue; } $trackType->set($attribute, AttributeFactory::create($attribute, $value)); } }
/** * @param AbstractType $trackType * @param array $attributes */ private function addAttributes(AbstractType $trackType, $attributes) { $this->mediaInfoContainer; foreach ($attributes as $attribute => $value) { if ($attribute[0] === '@') { continue; } $attribute = $this->formatAttribute($attribute); $trackType->set($attribute, AttributeFactory::create($attribute, $value)); } }