<?php final class NoExtending { public function myFunction() { } } class restrictedExtending { final public function anotherFunc() { } } class myChild extends restrictedExtending { public function thirdFunction() { } } ?>