Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
 
3
 
4
 
5
class ClassDeclaration
6
{
7
 
8
}
9
 
10
abstract class CorrectClassDeclarationWithExtends extends correctClassDeclaration
11
{
12
 
13
}
14
 
15
final  class CorrectClassDeclarationWithImplements implements correctClassDeclaration
16
{
17
 
18
}
19
 
20
 
21
// Incorrect placement of opening/closing braces, including indent.
22
class IncorrectBracePlacement {}
23
class IncorrectBracePlacementWithExtends extends correctClassDeclaration {}
24
class IncorrectBracePlacementWithImplements implements correctClassDeclaration {}
25
 
26
 
27
    class IncorrectIndentedClass
28
    {
29
 
30
    }//end class
31
 
32
 
33
// Incorrect code placement for opening/closing brace.
34
class IncorrectCodeAfterOpeningBrace
35
{ echo phpinfo();
36
 
37
}//end class
38
 
39
class IncorrectCodeAfterClosingBrace
40
{
41
 
42
} echo phpinfo();
43
 
44
 
45
class IncorrectCodeBeforeClosingBrace
46
{
47
 
48
echo phpinfo(); }
49
 
50
    class IncorrectIndentedClass
51
{
52
 
53
}
54
 
55
class ClassOne implements ClassTwo, ClassThree
56
{
57
}//end class
58
 
59
class ClassOne implements ClassFour   ,ClassFive,  ClassSix
60
{
61
}//end class
62
 
63
class CorrectClassDeclarationWithExtends extends correctClassDeclaration
64
 
65
{
66
 
67
}
68
 
69
class CorrectClassDeclarationWithExtends   extends correctClassDeclaration
70
{
71
 
72
}//end class
73
 
74
class   CorrectClassDeclaration
75
{
76
 
77
}//end class
78
 
79
 
80
class CorrectClassDeclaration extends CorrectClassDeclaration2 implements ICorrectClassDeclaration
81
{
82
 
83
}//end class
84
 
85
interface MyInterface
86
{
87
 
88
}
89
?>
90
 
91
<?php
92
 
93
class CorrectClassDeclaration
94
{
95
 
96
}//end class