Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

#State This pattern is used in computer programming to encapsulate varying behavior for the same routine based on an object's state object. More…

$audioSystem = new AudioSystem(AudioSystem::RADIO);
echo $audioSystem->next() . PHP_EOL; // find next radio station
echo $audioSystem->back() . PHP_EOL; // back radio station

$audioSystem->setMode(AudioSystem::CD);
echo $audioSystem->next() . PHP_EOL; // next track
echo $audioSystem->back() . PHP_EOL; // back track

##Diagram State UML Diagram

##External links