Interfaces
interface TableInterface {
  public function save(array $data);
}

interface LogInterface {
  public function log($message);
}

class Table implements TableInterface, LogInterface, Countable {
  public function save(array $data) {
    return 'foo';
  }
  public function log($message) {
    return $message . "\n";
  }
  public function count() {
    return 10;
  }
}

echo (new Table()) ->save([]);
echo "<br>\n";
echo (new Table()) ->log('I\'m a cowboy');
echo "<br>\n";
echo (new Table()) ->count();