/
4.1.ExtendsAndImplements.php
43 lines (39 loc) · 1.3 KB
/
4.1.ExtendsAndImplements.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
declare(strict_types=1);
namespace LaminasCodingStandardTest\fixed;
use ArrayAccess;
use Countable;
use ParentClass;
use Serializable;
class ExtendsAndImplements
extends
ParentClass
implements
ArrayAccess,
Countable,
Serializable {
public function testImplementedMethodWithoutTypeHint()
{
// This method should not have the missing return type added after
// running the fixer.
}
public function testClassDeclaration(): void
{
// The extends and implements keywords MUST be declared on the same line
// as the class name.
//
// The opening brace for the class MUST go on its own line; the closing
// brace for the class MUST go on the next line after the body.
//
// Opening braces MUST be on their own line and MUST NOT be preceded or
// followed by a blank line.
//
// Closing braces MUST be on their own line and MUST NOT be preceded by a
// blank line.
//
// Lists of implements and, in the case of interfaces, extends MAY be
// split across multiple lines, where each subsequent line is indented
// once. When doing so, the first item in the list MUST be on the next
// line, and there MUST be only one interface per line.
}
}