private function checkStorageLocationConsistency() { if ($this->getStorageLocation() === null) { throw new StorageLocationNotAssignedException(); } }