Beispiel #1
0
 public function __construct($fen = null)
 {
     if (!isset($fen)) {
         $fen = ChessRegistry::getDefaultFen();
     }
     $this->fen = $this->getValidFen($fen);
     parent::__construct();
 }
Beispiel #2
0
 protected function beforeInsert()
 {
     if (!$this->getFen()) {
         $this->setFen(ChessRegistry::getDefaultFen());
     }
 }