File tree Expand file tree Collapse file tree 1 file changed +8
-16
lines changed
exercises/practice/circular-buffer Expand file tree Collapse file tree 1 file changed +8
-16
lines changed Original file line number Diff line number Diff line change 24
24
25
25
declare (strict_types=1 );
26
26
27
- class BufferFullError extends Exception
28
- {
29
- }
30
-
31
- class BufferEmptyError extends Exception
32
- {
33
- }
34
-
35
27
class CircularBuffer
36
28
{
29
+ // You need to add more methods yourself!
30
+
37
31
public function read ()
38
32
{
39
33
throw new \BadMethodCallException (sprintf ('Implement the %s method ' , __FUNCTION__ ));
@@ -43,14 +37,12 @@ public function write($item): void
43
37
{
44
38
throw new \BadMethodCallException (sprintf ('Implement the %s method ' , __FUNCTION__ ));
45
39
}
40
+ }
46
41
47
- public function forceWrite ($ item ): void
48
- {
49
- throw new \BadMethodCallException (sprintf ('Implement the %s method ' , __FUNCTION__ ));
50
- }
42
+ class BufferFullError extends Exception
43
+ {
44
+ }
51
45
52
- public function clear (): void
53
- {
54
- throw new \BadMethodCallException (sprintf ('Implement the %s method ' , __FUNCTION__ ));
55
- }
46
+ class BufferEmptyError extends Exception
47
+ {
56
48
}
You can’t perform that action at this time.
0 commit comments