public function findConsumptionPreferenceCategoryName($preference)
    {
        // No Preferences defined yet.
        if (is_null($this->consumption_preferences)) {
            return null;
        }

        // Traverse and Return.
        return $this->traverseNodesAndFindBy('name', $preference, $this->consumption_preferences);
    }
public function findConsumptionPreferenceCategoryName($preference)
    {
        // No Preferences defined yet.
        if (is_null($this->consumption_preferences)) {
            return null;
        }

        // Traverse and Return.
        return $this->traverseNodesAndFindBy('name', $preference, $this->consumption_preferences);
    }
public function findConsumptionPreferenceCategoryName ( $ preference ) { // No Preferences defined yet. if ( is_null ( $ this -> consumption_preferences ) ) { return null ; } // Traverse and Return. return $ this -> traverseNodesAndFindBy ( 'name' , $ preference , $ this -> consumption_preferences ) ; }
Get a ConsumptionPreferencesCategory using its name.

@param string $preference

@return ConsumptionPreferencesCategoryNode|null
Get a ConsumptionPreferencesCategory using its name .