Recommend this page to a friend! |
Download |
Info | Documentation | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not yet rated by the users | Total: 69 | All time: 10,304 This week: 560 |
Version | License | PHP version | Categories | |||
polymorphism 1.0.0 | The PHP License | 5 | PHP 5, Language, Design Patterns |
Description | Author | |
This package can show several ways of implementing of polymorphism in PHP. |
This is a project to explain the polymorphism concept diving into:
You can find examples guiding you through all of the steps bellow
Extended explanation in spanish can be found [here][9]
[1]: https://github.com/motorflash/polymorphism/tree/master/src/AppBundle/Service/Basic [2]: https://github.com/motorflash/polymorphism/tree/master/src/AppBundle/Model/Basic [3]: https://github.com/motorflash/polymorphism/tree/master/src/AppBundle/Service/Inheritance [4]: https://github.com/motorflash/polymorphism/tree/master/src/AppBundle/Model/Inheritance [5]: https://github.com/motorflash/polymorphism/tree/master/src/AppBundle/Service/AbstractInheritance [6]: https://github.com/motorflash/polymorphism/tree/master/src/AppBundle/Model/AbstractInheritance [7]: https://github.com/motorflash/polymorphism/tree/master/src/AppBundle/Service/InterfaceImplementation [8]: https://github.com/motorflash/polymorphism/tree/master/src/AppBundle/Model/InterfaceImplementation [9]: https://github.com/motorflash/polymorphism/tree/master/docs/polimorfismo.md
./vendor/bin/phpunit
Files (61) |
File | Role | Description | ||
---|---|---|---|---|
app (3 files, 2 directories) | ||||
bin (2 files) | ||||
docs (1 file) | ||||
src (1 file, 1 directory) | ||||
tests (1 directory) | ||||
var (1 file) | ||||
web (7 files) | ||||
composer.json | Data | Auxiliary data | ||
composer.lock | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
phpunit.xml.dist | Data | Auxiliary data | ||
README.md | Doc. | Documentation |
Files (61) | / | app |
File | Role | Description | ||
---|---|---|---|---|
config (9 files) | ||||
Resources (1 directory) | ||||
.htaccess | Data | Auxiliary data | ||
AppCache.php | Class | Class source | ||
AppKernel.php | Class | Class source |
Files (61) | / | app | / | config |
File | Role | Description |
---|---|---|
config.yml | Data | Auxiliary data |
config_dev.yml | Data | Auxiliary data |
config_prod.yml | Data | Auxiliary data |
config_test.yml | Data | Auxiliary data |
parameters.yml.dist | Data | Auxiliary data |
routing.yml | Data | Auxiliary data |
routing_dev.yml | Data | Auxiliary data |
security.yml | Data | Auxiliary data |
services.yml | Data | Auxiliary data |
Files (61) | / | app | / | Resources | / | views |
File | Role | Description | ||
---|---|---|---|---|
default (1 file) | ||||
base.html.twig | Data | Auxiliary data |
Files (61) | / | app | / | Resources | / | views | / | default |
File | Role | Description |
---|---|---|
index.html.twig | Data | Auxiliary data |
Files (61) | / | bin |
File | Role | Description |
---|---|---|
console | Example | Example script |
symfony_requirements | Example | Example script |
Files (61) | / | src |
Files (61) | / | src | / | AppBundle |
File | Role | Description | ||
---|---|---|---|---|
Controller (1 file) | ||||
Model (4 directories) | ||||
Service (4 directories) | ||||
AppBundle.php | Class | Class source |
Files (61) | / | src | / | AppBundle | / | Controller |
File | Role | Description |
---|---|---|
DefaultController.php | Class | Class source |
Files (61) | / | src | / | AppBundle | / | Model |
File | Role | Description | ||
---|---|---|---|---|
AbstractInheritance (5 files) | ||||
Basic (2 files) | ||||
Inheritance (3 files) | ||||
InterfaceImplementation (5 files) |
Files (61) | / | src | / | AppBundle | / | Model | / | AbstractInheritance |
File | Role | Description |
---|---|---|
Animal.php | Class | Class source |
Cat.php | Class | Class source |
Dog.php | Class | Class source |
Lion.php | Class | Class source |
Pet.php | Class | Class source |
Files (61) | / | src | / | AppBundle | / | Model | / | Basic |
Files (61) | / | src | / | AppBundle | / | Model | / | Inheritance |
File | Role | Description |
---|---|---|
Animal.php | Class | Class source |
Cat.php | Class | Class source |
Lion.php | Class | Class source |
Files (61) | / | src | / | AppBundle | / | Model | / | InterfaceImplementation |
File | Role | Description |
---|---|---|
Animal.php | Class | Class source |
Cat.php | Class | Class source |
Dog.php | Class | Class source |
Lion.php | Class | Class source |
Pet.php | Class | Class source |
Files (61) | / | src | / | AppBundle | / | Service |
File | Role | Description | ||
---|---|---|---|---|
AbstractInheritance (1 file) | ||||
Basic (1 file) | ||||
Inheritance (1 file) | ||||
InterfaceImplementation (1 file) |
Files (61) | / | src | / | AppBundle | / | Service | / | AbstractInheritance |
File | Role | Description |
---|---|---|
AnimalService.php | Class | Class source |
Files (61) | / | src | / | AppBundle | / | Service | / | Basic |
File | Role | Description |
---|---|---|
AnimalService.php | Class | Class source |
Files (61) | / | src | / | AppBundle | / | Service | / | Inheritance |
File | Role | Description |
---|---|---|
AnimalService.php | Class | Class source |
Files (61) | / | src | / | AppBundle | / | Service | / | InterfaceImplementation |
File | Role | Description |
---|---|---|
AnimalService.php | Class | Class source |
Files (61) | / | tests | / | AppBundle | / | Model | / | Basic |
File | Role | Description |
---|---|---|
CatTest.php | Class | Class source |
LionTest.php | Class | Class source |
Files (61) | / | tests | / | AppBundle | / | Model | / | Inheritance |
File | Role | Description |
---|---|---|
AnimalTest.php | Class | Class source |
CatTest.php | Class | Class source |
LionTest.php | Class | Class source |
Files (61) | / | tests | / | AppBundle | / | Service |
File | Role | Description | ||
---|---|---|---|---|
AbstractInheritance (1 file) | ||||
Basic (1 file) | ||||
Inheritance (1 file) | ||||
InterfaceImplementation (1 file) |
Files (61) | / | tests | / | AppBundle | / | Service | / | AbstractInheritance |
File | Role | Description |
---|---|---|
AnimalServiceTest.php | Class | Class source |
Files (61) | / | tests | / | AppBundle | / | Service | / | Basic |
File | Role | Description |
---|---|---|
AnimalServiceTest.php | Class | Class source |
Files (61) | / | tests | / | AppBundle | / | Service | / | Inheritance |
File | Role | Description |
---|---|---|
AnimalServiceTest.php | Class | Class source |
Files (61) | / | tests | / | AppBundle | / | Service | / | InterfaceImplementation |
File | Role | Description |
---|---|---|
AnimalServiceTest.php | Class | Class source |
Files (61) | / | web |
File | Role | Description |
---|---|---|
.htaccess | Data | Auxiliary data |
app.php | Example | Example script |
apple-touch-icon.png | Icon | Icon image |
app_dev.php | Example | Example script |
config.php | Example | Example script |
favicon.ico | Data | Auxiliary data |
robots.txt | Doc. | Documentation |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.