1.2.957. PSR-13 Usage¶
PSR-13 describes a common interface for dependency injection containers.
It is supported by an set of interfaces, that one may use in the code.
<?php
namespace MyNamespace;
// MyLink implements the PSR-13 LinkInterface.
// MyLink is more of a black hole than a real Container.
class MyLink implements LinkInterface {
public function getHref() {}
public function isTemplated() {}
public function getRels() {}
public function getAttributes() {}
}
?>
See also PSR-13 : Link definition interface.
1.2.957.1. Connex PHP features¶
1.2.957.1.1. Specs¶
Short name |
Psr/Psr13Usage |
Rulesets |
|
Exakat since |
0.11.6 |
PHP Version |
All |
Severity |
|
Time To Fix |
|
Precision |
Very high |
Available in |