Add node to the graph

@param string $className
@param array $info
@return void
15623
public function addNode( $className, array $info )
    {
        $this->nodes[$className] = $info;
        $this->leaves[] = $className;
    }
1351304
public static function add_entry_namespace_to_class_map_entries( $map_entries, $classname  )
	{
		if ( ! is_array( $map_entries ) || count( $map_entries ) === 0 ) return;

		XBRL::$entrypoints_to_class_map = array_merge( XBRL::$entrypoints_to_class_map, array_fill_keys( $map_entries, $classname ) );
	}
99453
public function addClass($classname)
    {
        $classArr = $this->getClassArray();
        $classArr[] = $classname;
        return $this->setClassArray($classArr);
    }
79046
private function addClassDocComment(Class_ $node, \ReflectionClass $class) : Class_
    {
        $docComment = $class->getDocComment();
        if ($docComment) {
            $node->setDocComment(new Doc($docComment));
        }

        return $node;
    }
604630
public function addClass( $className, $parameters = array() )
	{
		$object	= Alg_Object_Factory::createObject( $className, $parameters );
		$this->addObject( $object );
	}
903002
public function addAlias(string $name, string $className)
    {
        $this->aliases[$name] = $className;
        return $this;
    }
1293479
public void addClassInfo(final ClassInfo classInfo) {
        ArgUtils.notNull(classInfo, "classInfo");
        
        removeClassInfo(classInfo.getClassName());
        this.classInfos.add(classInfo);
    }
38901
public function addToGroup($groupName, $elementName = '')
    {

		if(isset($this->groups[$groupName])){
			if(isset($this->groups[$groupName]['elements'])){
				if(!in_array($elementName, $this->groups[$groupName]['elements'])){
					$this->groups[$groupName]['elements'][] = $elementName;
				}
			}
		}

    }
736309
public static function addListener(string $className, string $priority, array $data = []) : void
    {
        if (array_key_exists($className, static::$listeners)) {
            return;
        }

        if (!class_exists($className) || !is_subclass_of($className, ListenerInterface::class)) {
            throw new ClassNotImplementsListenerInterfaceException($className);
        }

        static::$listeners[$className] = [static::DATA_LABEL => $data, static::PRIORITY_LABEL => $priority];
    }
714390
public static function addType($name, $className)
    {
        if (isset(self::$_typesMap[$name])) {
            throw OXMException::typeExists($name);
        }

        self::$_typesMap[$name] = $className;
    }
393536
function add_info($label, $value) {
    $method = "Set$label";
    if ( in_array("Title", "Author", "Keywords", "Subject") && method_exists($this->_pdf, $method) ) {
      $this->_pdf->$method($value);
    }
  }
1265838
public function buildRelationshipEntityMetadata(\SimpleXMLElement $node, $className)
    {
        if (!isset($node->{'start-node'}) || !isset($node->{'end-node'})) {
            throw new MappingException(
                sprintf('Class "%s" OGM XML configuration is missing "start-node" or "end-node" attributes', $className)
            );
        }

        $startNode = $node->{'start-node'};
        if (!isset($startNode['name']) || !isset($startNode['target-entity'])) {
            throw new MappingException(
                sprintf('Class "%s" OGM XML start-node configuration is missing mandatory attributes', $className)
            );
        }
        $startNodeKey = (string) $startNode['name'];
        $startNodeClass = ClassUtils::getFullClassName((string) $startNode['target-entity'], $className);

        $endNode = $node->{'end-node'};
        if (!isset($endNode['name']) || !isset($endNode['target-entity'])) {
            throw new MappingException(
                sprintf('Class "%s" OGM XML end-node configuration is missing mandatory attributes', $className)
            );
        }
        $endNodeKey = (string) $endNode['name'];
        $endNodeClass = ClassUtils::getFullClassName((string) $endNode['target-entity'], $className);

        $reflection = new \ReflectionClass($className);

        return new RelationshipEntityMetadata(
            $className,
            $reflection,
            $this->buildRelationshipMetadata($node, $className),
            $this->idXmlMetadataFactory->buildEntityIdMetadata($node, $className, $reflection),
            $startNodeClass,
            $startNodeKey,
            $endNodeClass,
            $endNodeKey,
            $this->propertyXmlMetadataFactory->buildPropertiesMetadata($node, $className, $reflection)
        );
    }
662846
public function add_class( \DOMElement &$node, $classes){
		$classes = (array)$classes;
		if( $node->hasAttribute('class') ){
			$classes = array_merge($classes, explode(' ', $node->getAttribute('classs')));
		}
		$node->setAttribute('class', implode(' ', $classes));
	}
1249437
public function addDomainInfo( $domain, array $info ) {
		$domain = $this->normalizeDomain( $domain );
		if ( isset( $this->domainInfos[ $domain ] ) ) {
			$this->domainInfos[ $domain ] += $info;
		}
	}
49382
private function updateNodes($classname)
    {
        $this->output->writeln(sprintf('<info>Updating nested data for %s.</info>', $classname));

        if (true === $this->skipNodesUpdate) {
            $this->output->writeln(' - <comment>Skipped</comment> (option --skip-nodes-update set)');
            return $this;
        }

        $sites = $this->em->getRepository('BackBee\Site\Site')->findAll();
        if (0 === count($sites)) {
            $this->output->writeln(' - None site found - <comment>Skipped</comment>');
            return $this;
        }

        $progress = $this->getHelperSet()->get('progress');
        $progress->start($this->output, $this->countNodes($classname));

        $this->em->getConnection()->executeUpdate('SET FOREIGN_KEY_CHECKS=0');
        foreach ($sites as $site) {
            foreach ($this->getPageRoot($site, $classname) as $root_uid) {
                $this->updateTreeNatively($root_uid, $classname);
            }
        }
        $this->em->getConnection()->executeUpdate('SET FOREIGN_KEY_CHECKS=1');

        $progress->finish();

        return $this;
    }
747259
public function appendInfoList (array $info_list) {
		foreach ($info_list as $name => $info) {
			$this->appendInfo($name, $info);
		}
	}
1372238
public void addClassNodeToCompile(ClassNode node, SourceUnit location) {
        classesToCompile.put(node.getName(), node);
        classNameToSource.put(node.getName(), location);
    }