Skip to content

Instantly share code, notes, and snippets.

@pixel5
Last active August 29, 2015 14:20
Show Gist options
  • Save pixel5/dba35bfe81b0e3f5caff to your computer and use it in GitHub Desktop.
Save pixel5/dba35bfe81b0e3f5caff to your computer and use it in GitHub Desktop.
byoc_seat
<?php
class byoc_seat {
public $number;
public $name;
public $clan;
function __construct($number, $name, $clan) {
$html_classes = array(
'byoc',
);
$this->number = $number;
$this->name = $name;
$this->clan = $clan;
$this->html_classes = $html_classes;
}
}
class byoc_noseat extends byoc_seat {
function __construct($number) {
$name = '-Empty-';
$clan = '';
parent::__construct($number,$name,$clan);
$this->html_classes = array_merge($this->html_classes, array('byoc-noseat'));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment