_relations = $relations; } /** * Check whether requested type is available for read * * @param string $type * @return bool */ public function has($type) { return isset($this->_relations[$type]); } /** * Retrieve parents for class * * @param string $type * @return array */ public function getParents($type) { return $this->_relations[$type]; } }