Skip to content

Instantly share code, notes, and snippets.

@leopro
Last active August 29, 2015 13:57
Show Gist options
  • Save leopro/9465708 to your computer and use it in GitHub Desktop.
Save leopro/9465708 to your computer and use it in GitHub Desktop.
<?php
class Child extends Mother
{
private $fieldsCount;
public function __construct()
{
$this->fieldsCount = 5;
}
protected function prepareColumns()
{
// ...
}
}
<?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