Class %s contains %d abstract method%s and must therefore be declared abstract or implement the remaining methods¶
Description¶
A long as there is one absract method in a class, the whole class must be declared abstract. That way, it cannot be instantiated: if a method is missing a body for execution, this definitely must be impossible.
Example¶
<?php
class X {
abstract function foo() ;
}
?>
Literal Examples¶
Class X contains 1 abstract method and must therefore be declared abstract or implement the remaining methods
Solutions¶
Remove the abstract option on the method(s) and give the a body block.
Add the abstract keyword to the class.