In camelCase names are written without any punctuation, the start of each new word
being marked by a capital letter. The whole name starts with a capital letter as well.
Thus the name database provider becomes DatabaseProvider.
Loading history...
20
{
21
22
/**
23
* Executes this middle ware class.
24
*
25
* @param $command
26
* @param callable $next
27
*
28
* @return object
29
*/
30
public function execute($command, callable $next)
31
{
32
$element = $next($command);
33
$object = $command->getObject();
34
35
if (isset($object->implements)) {
36
foreach ($object->implements as $interfaceClassName) {
Classes in PHP are usually named in CamelCase.
In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. The whole name starts with a capital letter as well.
Thus the name database provider becomes
DatabaseProvider
.