Completed
Push — master ( a0c8a1...aee42a )
by Wim
9s
created

MySerializable::__wakeup()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 1
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 1
c 1
b 0
f 1
nc 1
nop 0
dl 0
loc 1
rs 10
1
<?php
2
3
class MyCountable implements Countable {}
0 ignored issues
show
Bug introduced by
There is one abstract method count in this class; you could implement it, or declare this class as abstract.
Loading history...
4
class MyOuterIterator implements OuterIterator {}
0 ignored issues
show
Bug introduced by
There is at least one abstract method in this class. Maybe declare it as abstract, or implement the remaining methods: current, getInnerIterator, key, next, rewind, valid
Loading history...
5
class MyRecursiveIterator implements RecursiveIterator {}
0 ignored issues
show
Bug introduced by
There is at least one abstract method in this class. Maybe declare it as abstract, or implement the remaining methods: current, getChildren, hasChildren, key, next, rewind, valid
Loading history...
6
class MySeekableIterator implements SeekableIterator {}
0 ignored issues
show
Bug introduced by
There is at least one abstract method in this class. Maybe declare it as abstract, or implement the remaining methods: current, key, next, rewind, seek, valid
Loading history...
7
class MySerializable implements Serializable {
0 ignored issues
show
Bug introduced by
There is at least one abstract method in this class. Maybe declare it as abstract, or implement the remaining methods: serialize, unserialize
Loading history...
8
	public function __sleep() {}
9
	public function __wakeup() {}
10
}
11
class MySplObserver implements SplObserver {}
0 ignored issues
show
Bug introduced by
There is one abstract method update in this class; you could implement it, or declare this class as abstract.
Loading history...
12
class MySplSubject implements SplSubject {}
0 ignored issues
show
Bug introduced by
There is at least one abstract method in this class. Maybe declare it as abstract, or implement the remaining methods: attach, detach, notify
Loading history...
13
class MyJsonSerializable implements JsonSerializable {}
0 ignored issues
show
Bug introduced by
There is one abstract method jsonSerialize in this class; you could implement it, or declare this class as abstract.
Loading history...
14
class MySessionHandlerInterface implements SessionHandlerInterface {}
0 ignored issues
show
Bug introduced by
There is at least one abstract method in this class. Maybe declare it as abstract, or implement the remaining methods: close, destroy, gc, open, read, write
Loading history...
15
16
class MyMultiple implements SplSubject, JsonSerializable, Countable {}
0 ignored issues
show
Comprehensibility Best Practice introduced by
The type MyMultiple has been defined more than once; this definition is ignored, only the first definition in Tests/sniff-examples/internal_interfaces.php (L7-7) is considered.

This check looks for classes that have been defined more than once.

If you can, we would recommend to use standard object-oriented programming techniques. For example, to avoid multiple types, it might make sense to create a common interface, and then multiple, different implementations for that interface.

This also has the side-effect of providing you with better IDE auto-completion, static analysis and also better OPCode caching from PHP.

Loading history...
17
18
class MyUppercase implements COUNTABLE {}
0 ignored issues
show
Comprehensibility Best Practice introduced by
The type MyUppercase has been defined more than once; this definition is ignored, only the first definition in Tests/sniff-examples/internal_interfaces.php (L9-9) is considered.

This check looks for classes that have been defined more than once.

If you can, we would recommend to use standard object-oriented programming techniques. For example, to avoid multiple types, it might make sense to create a common interface, and then multiple, different implementations for that interface.

This also has the side-effect of providing you with better IDE auto-completion, static analysis and also better OPCode caching from PHP.

Loading history...
Bug introduced by
There is at least one abstract method in this class. Maybe declare it as abstract, or implement the remaining methods: __wakeup, diff, format, getOffset, getTimestamp, getTimezone
Loading history...
19
class MyLowercase implements countable {}
0 ignored issues
show
Comprehensibility Best Practice introduced by
The type MyLowercase has been defined more than once; this definition is ignored, only the first definition in Tests/sniff-examples/internal_interfaces.php (L10-10) is considered.

This check looks for classes that have been defined more than once.

If you can, we would recommend to use standard object-oriented programming techniques. For example, to avoid multiple types, it might make sense to create a common interface, and then multiple, different implementations for that interface.

This also has the side-effect of providing you with better IDE auto-completion, static analysis and also better OPCode caching from PHP.

Loading history...
Bug introduced by
There is at least one abstract method in this class. Maybe declare it as abstract, or implement the remaining methods: __wakeup, diff, format, getOffset, getTimestamp, getTimezone
Loading history...
20