Mapa mental
PHP Framework
Conteúdo do mapa
PHP Framework
Classes
- Inheritance
- extends
- override
- abstract
- An abstract class can't be instantiated.
- abstract methods
- The child classes MUST implement the abstract method.
- interface
- Programming over interface not implementation. If we're struggling between different types when using some class, an interface is a good choice.
- contract
- extends
- Encapsulation
- public
- private
- protected
- Inheritance
Routes
- Route Model Binding
Models
Controllers
DI
- Passing arguments to a function, in a "classy" way
IoC Container
Eloquent
- QueryScopes
- public function scopeNombre($query){ return $query->method(bla, bla bla)->get(); }
- QueryScopes
SOLID
Simple Rules
- No abbreviation
- Class names
- Methods
- Variables
- Be descriptive
- No more than 2 words in the descriptive method/class
- No else condition
- Many choices = Polymorphism?
- One leve of indentation per method
- Limit the Instance Variables
- Wrap primitive and strings
- Does it bring clarity?
- Is there behavior?
- Consistency
- Important domain concept?
- No abbreviation
Service Container
- Where services are binded, functions as a Singleton instance of a class.
Service Provider
Informações
- Descrição
- Informática Mapa Mental sobre PHP Framework, criado por sdfsddsdsdsd sdsdsdsdsd em 24-09-2021.
- Criado por
- sdfsddsdsdsd sdsdsdsdsd
- Visualizações
- 0
- Tags
- Histórico
-
- Criado por Luis Rojas · 3 mai 2017
- Copiado por Ahmed Salem · 2 jan 2019
- Copiado por Ahmed Salem · 6 jan 2019
- Copiado por sdfsddsdsdsd sdsdsdsdsd · 24 set 2021
- Avaliação