| 1 | <?php |
||
| 26 | class Runner |
||
| 27 | { |
||
| 28 | /** |
||
| 29 | * The task to be run. |
||
| 30 | * |
||
| 31 | * @var Task |
||
| 32 | */ |
||
| 33 | private $task; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Create a new instance. |
||
| 37 | * |
||
| 38 | * @param Task $task The task to be run. |
||
| 39 | */ |
||
| 40 | public function __construct(Task $task) |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Run the task. |
||
| 47 | * |
||
| 48 | * @param string $logfile The log file to use. |
||
| 49 | * |
||
| 50 | * @return bool |
||
| 51 | */ |
||
| 52 | public function run($logfile) |
||
| 58 | } |
||
| 59 |
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.