src/ParametricTree/RecursiveTree.php
public function getLeaf($uniqueKey)
    {
        if (! isset($this->crown[$uniqueKey])) {
            throw new InvalidArgumentException(sprintf(
                'The leaf with unique key "%s" not exists.',
                $uniqueKey
            ));
        }

        return $this->crown[$uniqueKey];
    }
public function getLeaf($uniqueKey)
    {
        if (! isset($this->crown[$uniqueKey])) {
            throw new InvalidArgumentException(sprintf(
                'The leaf with unique key "%s" not exists.',
                $uniqueKey
            ));
        }

        return $this->crown[$uniqueKey];
    }
public function getLeaf ( $ uniqueKey ) { if ( ! isset ( $ this -> crown [ $ uniqueKey ] ) ) { throw new InvalidArgumentException ( sprintf ( 'The leaf with unique key "%s" not exists.' , $ uniqueKey ) ) ; } return $ this -> crown [ $ uniqueKey ] ; }
Gets the specified leaf.

@param int|string $uniqueKey The unique key of leaf

@throws \InvalidArgumentException If the specified leaf not exists

@return RecursiveLeafInterface The specified leaf
Gets the specified leaf .