Recommend this page to a friend! |
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
Classes of Manolo Salsas | > | PHP Polymorphism Example | > | Download .zip .tar.gz | > | Support forum | > | Blog | > | Latest changes |
|
|
Groups | Applications | Files |
Groups |
PHP 5 | Classes using PHP 5 specific features | View top rated classes |
Language | Constructs to assist in the language control | View top rated classes |
Design Patterns | Implementations of well known design patterns | View top rated classes |
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.
Files |
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 | / | 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 | / | 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 | / | app | / | Resources | / | views |
File | Role | Description | ||
---|---|---|---|---|
default (1 file) | ||||
base.html.twig | Data | Auxiliary data |
Files | / | bin |
File | Role | Description |
---|---|---|
console | Example | Example script |
symfony_requirements | Example | Example script |
Files | / | src | / | AppBundle |
File | Role | Description | ||
---|---|---|---|---|
Controller (1 file) | ||||
Model (4 directories) | ||||
Service (4 directories) | ||||
AppBundle.php | Class | Class source |
Files | / | src | / | AppBundle | / | Model |
File | Role | Description | ||
---|---|---|---|---|
AbstractInheritance (5 files) | ||||
Basic (2 files) | ||||
Inheritance (3 files) | ||||
InterfaceImplementation (5 files) |
Files | / | 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 | / | src | / | AppBundle | / | Model | / | Inheritance |
File | Role | Description |
---|---|---|
Animal.php | Class | Class source |
Cat.php | Class | Class source |
Lion.php | Class | Class source |
Files | / | 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 | / | src | / | AppBundle | / | Service |
File | Role | Description | ||
---|---|---|---|---|
AbstractInheritance (1 file) | ||||
Basic (1 file) | ||||
Inheritance (1 file) | ||||
InterfaceImplementation (1 file) |
Files | / | src | / | AppBundle | / | Service | / | AbstractInheritance |
File | Role | Description |
---|---|---|
AnimalService.php | Class | Class source |
Files | / | src | / | AppBundle | / | Service | / | Basic |
File | Role | Description |
---|---|---|
AnimalService.php | Class | Class source |
Files | / | src | / | AppBundle | / | Service | / | Inheritance |
File | Role | Description |
---|---|---|
AnimalService.php | Class | Class source |
Files | / | src | / | AppBundle | / | Service | / | InterfaceImplementation |
File | Role | Description |
---|---|---|
AnimalService.php | Class | Class source |
Files | / | tests | / | AppBundle | / | Model | / | Basic |
File | Role | Description |
---|---|---|
CatTest.php | Class | Class source |
LionTest.php | Class | Class source |
Files | / | tests | / | AppBundle | / | Model | / | Inheritance |
File | Role | Description |
---|---|---|
AnimalTest.php | Class | Class source |
CatTest.php | Class | Class source |
LionTest.php | Class | Class source |
Files | / | tests | / | AppBundle | / | Service |
File | Role | Description | ||
---|---|---|---|---|
AbstractInheritance (1 file) | ||||
Basic (1 file) | ||||
Inheritance (1 file) | ||||
InterfaceImplementation (1 file) |
Files | / | tests | / | AppBundle | / | Service | / | AbstractInheritance |
File | Role | Description |
---|---|---|
AnimalServiceTest.php | Class | Class source |
Files | / | tests | / | AppBundle | / | Service | / | Basic |
File | Role | Description |
---|---|---|
AnimalServiceTest.php | Class | Class source |
Files | / | tests | / | AppBundle | / | Service | / | Inheritance |
File | Role | Description |
---|---|---|
AnimalServiceTest.php | Class | Class source |
Files | / | tests | / | AppBundle | / | Service | / | InterfaceImplementation |
File | Role | Description |
---|---|---|
AnimalServiceTest.php | Class | Class source |
Files | / | 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 |
Download all files: polymorphism.tar.gz polymorphism.zip NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.
|