migrations/Migration.php
protected function addChild($parent, $child)
    {
        if (is_string($parent)) {
            $parent = $this->findItem($parent);
        }

        if (is_string($child)) {
            $child = $this->findItem($child);
        }

        echo "    > adding $child->name as child to $parent->name ...";
        $time = microtime(true);
        $this->authManager->addChild($parent, $child);
        echo ' done (time: ' . sprintf('%.3f', microtime(true) - $time) . "s)\n";
    }
protected function addChild($parent, $child)
    {
        if (is_string($parent)) {
            $parent = $this->findItem($parent);
        }

        if (is_string($child)) {
            $child = $this->findItem($child);
        }

        echo "    > adding $child->name as child to $parent->name ...";
        $time = microtime(true);
        $this->authManager->addChild($parent, $child);
        echo ' done (time: ' . sprintf('%.3f', microtime(true) - $time) . "s)\n";
    }
protected function addChild ( $ parent , $ child ) { if ( is_string ( $ parent ) ) { $ parent = $ this -> findItem ( $ parent ) ; } if ( is_string ( $ child ) ) { $ child = $ this -> findItem ( $ child ) ; } echo "    > adding $child->name as child to $parent->name ..." ; $ time = microtime ( true ) ; $ this -> authManager -> addChild ( $ parent , $ child ) ; echo ' done (time: ' . sprintf ( '%.3f' , microtime ( true ) - $ time ) . "s)\n" ; }
Adds child.

@param Item|string $parent Either name or Item instance which is parent
@param Item|string $child  Either name or Item instance which is child
Adds child .