Esempio n. 1
0
 /** 
  * Validate the type
  * 
  * @return void
  * 
  * @throws InvalidOperationException
  */
 public function validateType()
 {
     $keyProperties = $this->getKeyProperties();
     if ($this->_resourceTypeKind == ResourceTypeKind::ENTITY && empty($keyProperties)) {
         throw new InvalidOperationException(Messages::resourceTypeMissingKeyPropertiesForEntity($this->getFullName()));
     }
 }