1 | <?php |
||
8 | abstract class Renderer |
||
|
|||
9 | { |
||
10 | const SORT_NONE = 0; |
||
11 | const SORT_VISIBILITY = 1; |
||
12 | const SORT_FULL = 2; |
||
13 | |||
14 | protected $parameters; |
||
15 | |||
16 | abstract public function render(BasicObject $o); |
||
17 | |||
18 | /** |
||
19 | * It's a constructor. It constructs. |
||
20 | * |
||
21 | * @param array $parameters Array with initial kint state information |
||
22 | */ |
||
23 | public function __construct(array $parameters) |
||
27 | |||
28 | /** |
||
29 | * Returns the first compatible plugin available. |
||
30 | * |
||
31 | * @param array $plugins Array of hints to class strings |
||
32 | * @param array $hints Array of object hints |
||
33 | * |
||
34 | * @return array Array of hints to class strings filtered and sorted by object hints |
||
35 | */ |
||
36 | public function matchPlugins(array $plugins, array $hints) |
||
48 | |||
49 | public function parserPlugins(array $plugins) |
||
53 | |||
54 | public function preRender() |
||
58 | |||
59 | public function postRender() |
||
63 | |||
64 | public static function sortPropertiesFull(BasicObject $a, BasicObject $b) |
||
78 | |||
79 | /** |
||
80 | * Sorts an array of BasicObject. |
||
81 | * |
||
82 | * @param BasicObject[] $contents Object properties to sort |
||
83 | * @param int $sort |
||
84 | * |
||
85 | * @return BasicObject[] |
||
86 | */ |
||
87 | public static function sortProperties(array $contents, $sort) |
||
110 | } |
||
111 |
This check examines a number of code elements and verifies that they conform to the given naming conventions.
You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.