Last active
August 29, 2015 13:57
-
-
Save leopro/9465708 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Child extends Mother | |
{ | |
private $fieldsCount; | |
public function __construct() | |
{ | |
$this->fieldsCount = 5; | |
} | |
protected function prepareColumns() | |
{ | |
// ... | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
abstract class Mother | |
{ | |
abstract protected function prepareColumns(); | |
public function printData() | |
{ | |
$this->prepareColumns(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment