public function setCategory($category) { $this->category =
$category;
} /**
* @return Locale
*/
public function getLocale() { if (!
$this->locale instanceof Locale
) { throw new ShopLocaleNotSetException();
} return $this->locale;
} /**
* @param Locale|null $locale
*/
public function setLocale($locale) { $this->locale =
$locale;
}