Last active
August 29, 2015 14:20
-
-
Save pixel5/dba35bfe81b0e3f5caff to your computer and use it in GitHub Desktop.
byoc_seat
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 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