| 1 | <?php | ||
| 13 | class CssDocumentFactory extends FileFactory { | ||
| 14 | |||
| 15 | |||
| 16 | /** | ||
| 17 | * Build a CSS Document object from a file | ||
| 18 | * | ||
| 19 | * @param string $file | ||
| 20 | * | ||
| 21 | * @param bool $mbSupport | ||
| 22 | * Turn multi byte support on or off | ||
| 23 | * | ||
| 24 | * @return Document | ||
| 25 | * A parsed CSS document object | ||
| 26 | */ | ||
| 27 |     public static function build($file, $mbSupport = false) { | ||
| 38 | |||
| 39 | |||
| 40 | } | ||
| 41 | 
This check looks for a call to a parent method whose name is different than the method from which it is called.
Consider the following code:
The
getFirstName()method in theSoncalls the wrong method in the parent class.