public function findNeedById($id)
    {
        // No needs defined yet.
        if (is_null($this->needs)) {
            return null;
        }

        // Traverse and Return.
        return $this->traverseNodesAndFindBy('trait_id', $id, $this->needs);
    }
public function findNeedById($id)
    {
        // No needs defined yet.
        if (is_null($this->needs)) {
            return null;
        }

        // Traverse and Return.
        return $this->traverseNodesAndFindBy('trait_id', $id, $this->needs);
    }
public function findNeedById ( $ id ) { // No needs defined yet. if ( is_null ( $ this -> needs ) ) { return null ; } // Traverse and Return. return $ this -> traverseNodesAndFindBy ( 'trait_id' , $ id , $ this -> needs ) ; }
Get a Need using Id.

@param string $id

@return TraitTreeNode|null
Get a Need using Id .