/** * Constructor * @param string $name name of the corresponding class * @param string $type either "has" or "composed_of" * @param string $class the name of the class related * @param epClassMap */ public function __construct($name, $type, $class, $is_many = false, $inverse = false, $class_map = false) { parent::__construct($name, $type, $class_map); $this->setIsMany($is_many); $this->setClass($class); $this->setInverse($inverse); }