add ExtractTune use case

This commit is contained in:
2018-04-30 17:24:02 -04:00
parent 3817394951
commit e8c8709976
42 changed files with 1388 additions and 5047 deletions

View File

@@ -80,6 +80,20 @@ class Tune implements EntityInterface
}
}
public function getETag()
{
return md5(implode(';', array_flatten([
$this->getTitles(),
$this->getAuthors(),
$this->getComposers(),
$this->getGroups(),
$this->getHistory(),
$this->getOrigins(),
$this->getRhythms(),
//TODO: add settings
])));
}
/**
* @param UnsignedIntegerAtom $index
* @return $this