-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphp.php
More file actions
72 lines (65 loc) · 1.67 KB
/
php.php
File metadata and controls
72 lines (65 loc) · 1.67 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?php
/*
* Copyright MADE/YOUR/DAY <mail@madeyourday.co>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace MadeYourDay\MyNamespace;
/**
* Class title
*
* Class description...
*
* @author Author Name <author@email.com>
*/
class ClassName extends \ExtendedClass implements \ImplementedInterface
{
/**
* @var integer Constant description
*/
const SOME_CONSTANT = 123;
/**
* @var string Variable description
*/
public $foo = 'string';
/**
* Method description
*
* @param string $typeLess description...
* @param ClassName $forcingType description...
* @param ClassName|null $nullAllowed description...
*/
public function __construct($typeLess, ClassName $forcingType, ClassName $nullAllowed = NULL)
{
$output = 'value: ' . $typeLess;
$list = array(
'key' => 'value',
'list2' => array(
array('singlekey' => 'value'),
array('singlekey2' => 'value2'),
),
);
// Single line comment
if ($typeLess) {
$output .= 'Lorem ipsum dolor sit amet, consectetur adipisicing '
. 'elit sed do eiusmod tempor incididunt ut labore et '
. 'dolore magna aliqua. Ut enim ad minim veniam, quis '
. 'nostrud exercitation ullamco laboris nisi ut aliquip '
. 'ex ea commodo consequat. Duis aute irure dolor in.';
}
elseif (!empty($typeLess['key'])) {
$output .= 'Lorem ipsum dolor sit amet, consectetur adipisicing ';
}
return $output;
}
/**
* Method description
*
* @return integer description...
*/
abstract public static function methodName()
{
return static::SOME_CONSTANT;
}
}