/**
  * Sets the inheritance type used by the class and it's subclasses.
  *
  * @param integer $type
  * @throws MappingException
  * @return void
  */
 public function setInheritanceType($type)
 {
     if (!$this->_isInheritanceType($type)) {
         throw MappingException::invalidInheritanceType($this->name, $type);
     }
     $this->inheritanceType = $type;
 }