Skip to content

Latest commit

 

History

History

nullObject

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

#Null Object А Null Object is an object with defined neutral ("null") behavior. The Null Object design pattern describes the uses of such objects and their behavior (or lack thereof). More…

function doSomething(Animal $animal)
{
    $animal->sound();
}

doSomething(new Dog); // woof
doSomething(new NullAnimal); //