1 | <?php |
||
30 | class Pause extends Booking |
||
31 | { |
||
32 | |||
33 | /** |
||
34 | * Constant for the pause start tag |
||
35 | * |
||
36 | * @var string PAUSE_TAG_START |
||
37 | */ |
||
38 | const PAUSE_TAG_START = '--ps--'; |
||
39 | |||
40 | /** |
||
41 | * Constant for the pause end tag |
||
42 | * |
||
43 | * @var string PAUSE_TAG_END |
||
44 | */ |
||
45 | const PAUSE_TAG_END = '--pe--'; |
||
46 | |||
47 | /** |
||
48 | * Default constructor |
||
49 | * |
||
50 | * @param string $comment Comment for the pause |
||
51 | * @param boolean $resuming Whether or not the pause has ended |
||
52 | * @param null|string $time Time of this booking |
||
53 | */ |
||
54 | public function __construct($comment = '', $resuming = false, $time = null) |
||
66 | |||
67 | /** |
||
68 | * Whether or not this booking can be the start of a task |
||
69 | * |
||
70 | * @param boolean $includePause Whether or not pauses are included as task building bookings |
||
|
|||
71 | * |
||
72 | * @return boolean |
||
73 | */ |
||
74 | public function isPauseEnd() |
||
78 | |||
79 | /** |
||
80 | * Whether or not this booking can be the start of a task |
||
81 | * |
||
82 | * @param boolean $includePause Whether or not pauses are included as task building bookings |
||
83 | * |
||
84 | * @return boolean |
||
85 | */ |
||
86 | public function canStartTask($includePause = false) |
||
93 | |||
94 | /** |
||
95 | * Whether or not this booking can be the end of a task |
||
96 | * |
||
97 | * @param boolean $includePause Whether or not pauses are included as task building bookings |
||
98 | * |
||
99 | * @return boolean |
||
100 | */ |
||
101 | public function canEndTask($includePause = false) |
||
108 | } |
||
109 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.