src/ORM/Hierarchy/MarkedSet.php
public function setNumChildrenMethod($method)
    {
        // Check method is valid
        if (!$this->rootNode->hasMethod($method)) {
            throw new InvalidArgumentException(sprintf(
                "Can't find the method '%s' on class '%s' for counting tree children",
                $method,
                get_class($this->rootNode)
            ));
        }
        $this->numChildrenMethod = $method;
        return $this;
    }
public function setNumChildrenMethod($method)
    {
        // Check method is valid
        if (!$this->rootNode->hasMethod($method)) {
            throw new InvalidArgumentException(sprintf(
                "Can't find the method '%s' on class '%s' for counting tree children",
                $method,
                get_class($this->rootNode)
            ));
        }
        $this->numChildrenMethod = $method;
        return $this;
    }
public function setNumChildrenMethod ( $ method ) { // Check method is valid if ( ! $ this -> rootNode -> hasMethod ( $ method ) ) { throw new InvalidArgumentException ( sprintf ( "Can't find the method '%s' on class '%s' for counting tree children" , $ method , get_class ( $ this -> rootNode ) ) ) ; } $ this -> numChildrenMethod = $ method ; return $ this ; }
Set method name to get num children

@param string $method
@return $this
Set method name to get num children