protected function checkAttributes() { if (!$this->domain || !$this->locale || !$this->dir) { throw new BuildException("You must specify values for domain, locale, and dir attributes."); } }