GitList
Repositories
Help
Report an Issue
blackjack
Code
Commits
Branches
Tags
Search
Tree:
d7b0224
Branches
Tags
master
blackjack
Objects
Card.php
initial commit
Dev Ghai
commited
d7b0224
at 2014-04-17 16:55:27
Card.php
Blame
History
Raw
<?php /** * User: dev * Date: 3/13/14 * Time: 9:23 AM */ namespace Blackjack\Objects; class Card { public $valueFace; public $suit; public $valueActual; public function __construct($suit = null, $faceValue = null, $actualValue = null) { if($suit == null || $faceValue == null || $actualValue == null) { throw new \Exception("Cannot initialize Card with null for suit or value", E_BJ_WRONG_CARD_INIT); } $this->suit = $suit; $this->valueFace = $faceValue; $this->valueActual = $actualValue; } }