code: public function getRelatedType($name)
      {
          list($relationship, $role) = $this->getRelationship($name);
          if ($relationship) {
              return $relationship->roleType($role);
          }
  
          return false;
      }
docs: Get related type.
  
  @param [[@doctodo param_type:name]] $name [[@doctodo param_description:name]]
  
  @return [[@doctodo return_type:getRelatedType]] [[@doctodo return_description:getRelatedType]]