demo/Acme/Extendable/GrandDaughter/GrandDaughter.php
public function listMethodsByStates()
    {
        $methodsList = array();
        foreach ($this->getStatesList() as $stateName => $stateContainer) {
            $methodsList[$stateName] = $stateContainer->listMethods();
        }

        ksort($methodsList);

        return $methodsList;
    }
public function listMethodsByStates()
    {
        $methodsList = array();
        foreach ($this->getStatesList() as $stateName => $stateContainer) {
            $methodsList[$stateName] = $stateContainer->listMethods();
        }

        ksort($methodsList);

        return $methodsList;
    }
public function listMethodsByStates ( ) { $ methodsList = array ( ) ; foreach ( $ this -> getStatesList ( ) as $ stateName => $ stateContainer ) { $ methodsList [ $ stateName ] = $ stateContainer -> listMethods ( ) ; } ksort ( $ methodsList ) ; return $ methodsList ; }
Return the list of available state in this class.

@return array
Return the list of available state in this class .