2019-01-10 20:05:23 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/*
|
|
|
|
* The MIT License
|
|
|
|
*
|
|
|
|
* Copyright 2019 Jeroen De Meerleer <schaak@jeroened.be>.
|
|
|
|
*
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
* of this software and associated documentation files (the "Software"), to deal
|
|
|
|
* in the Software without restriction, including without limitation the rights
|
|
|
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
* copies of the Software, and to permit persons to whom the Software is
|
|
|
|
* furnished to do so, subject to the following conditions:
|
|
|
|
*
|
|
|
|
* The above copyright notice and this permission notice shall be included in
|
|
|
|
* all copies or substantial portions of the Software.
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
|
* THE SOFTWARE.
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace JeroenED\Libpairtwo\Models;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Description of Sws
|
|
|
|
*
|
|
|
|
* @author Jeroen De Meerleer <schaak@jeroened.be>
|
|
|
|
*/
|
2019-01-16 18:03:07 +01:00
|
|
|
class Tournament
|
|
|
|
{
|
|
|
|
private $Name;
|
|
|
|
private $Organiser;
|
|
|
|
private $OrganiserClub;
|
|
|
|
private $OrganiserPlace;
|
|
|
|
private $OrganiserCountry;
|
2019-01-18 18:10:56 +01:00
|
|
|
private $FideHomol;
|
2019-01-16 18:03:07 +01:00
|
|
|
private $StartDate;
|
|
|
|
private $EndDate;
|
|
|
|
private $Arbiter;
|
|
|
|
private $Rounds;
|
|
|
|
private $Participants;
|
|
|
|
private $Tempo;
|
|
|
|
private $NonRatedElo;
|
|
|
|
private $System;
|
|
|
|
|
|
|
|
/**
|
2019-01-18 18:10:56 +01:00
|
|
|
* @return string
|
2019-01-16 18:03:07 +01:00
|
|
|
*/
|
|
|
|
public function getName()
|
|
|
|
{
|
|
|
|
return $this->Name;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2019-01-18 18:10:56 +01:00
|
|
|
* @param string $Name
|
2019-01-16 18:03:07 +01:00
|
|
|
*/
|
|
|
|
public function setName($Name): void
|
|
|
|
{
|
|
|
|
$this->Name = $Name;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2019-01-18 18:10:56 +01:00
|
|
|
* @return string
|
2019-01-16 18:03:07 +01:00
|
|
|
*/
|
|
|
|
public function getOrganiser()
|
|
|
|
{
|
|
|
|
return $this->Organiser;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2019-01-18 18:10:56 +01:00
|
|
|
* @param string $Organiser
|
2019-01-16 18:03:07 +01:00
|
|
|
*/
|
|
|
|
public function setOrganiser($Organiser): void
|
|
|
|
{
|
|
|
|
$this->Organiser = $Organiser;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2019-01-18 18:10:56 +01:00
|
|
|
* @return integer
|
2019-01-16 18:03:07 +01:00
|
|
|
*/
|
|
|
|
public function getOrganiserClub()
|
|
|
|
{
|
|
|
|
return $this->OrganiserClub;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2019-01-18 18:10:56 +01:00
|
|
|
* @param integer $OrganiserClub
|
2019-01-16 18:03:07 +01:00
|
|
|
*/
|
|
|
|
public function setOrganiserClub($OrganiserClub): void
|
|
|
|
{
|
|
|
|
$this->OrganiserClub = $OrganiserClub;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2019-01-18 18:10:56 +01:00
|
|
|
* @return string
|
2019-01-16 18:03:07 +01:00
|
|
|
*/
|
|
|
|
public function getOrganiserPlace()
|
|
|
|
{
|
|
|
|
return $this->OrganiserPlace;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2019-01-18 18:10:56 +01:00
|
|
|
* @param string $OrganiserPlace
|
2019-01-16 18:03:07 +01:00
|
|
|
*/
|
|
|
|
public function setOrganiserPlace($OrganiserPlace): void
|
|
|
|
{
|
|
|
|
$this->OrganiserPlace = $OrganiserPlace;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2019-01-18 18:10:56 +01:00
|
|
|
* @return string
|
2019-01-16 18:03:07 +01:00
|
|
|
*/
|
|
|
|
public function getOrganiserCountry()
|
|
|
|
{
|
|
|
|
return $this->OrganiserCountry;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2019-01-18 18:10:56 +01:00
|
|
|
* @param string $OrganiserCountry
|
2019-01-16 18:03:07 +01:00
|
|
|
*/
|
|
|
|
public function setOrganiserCountry($OrganiserCountry): void
|
|
|
|
{
|
|
|
|
$this->OrganiserCountry = $OrganiserCountry;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2019-01-18 18:10:56 +01:00
|
|
|
* @return integer
|
|
|
|
*/
|
|
|
|
public function getFideHomol()
|
|
|
|
{
|
|
|
|
return $this->FideHomol;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param integer $FideHomol
|
|
|
|
*/
|
|
|
|
public function setFideHomol($FideHomol): void
|
|
|
|
{
|
|
|
|
$this->FideHomol = $FideHomol;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return integer
|
2019-01-16 18:03:07 +01:00
|
|
|
*/
|
|
|
|
public function getStartDate()
|
|
|
|
{
|
|
|
|
return $this->StartDate;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2019-01-18 18:10:56 +01:00
|
|
|
* @param integer $StartDate
|
2019-01-16 18:03:07 +01:00
|
|
|
*/
|
|
|
|
public function setStartDate($StartDate): void
|
|
|
|
{
|
|
|
|
$this->StartDate = $StartDate;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2019-01-18 18:10:56 +01:00
|
|
|
* @return integer
|
2019-01-16 18:03:07 +01:00
|
|
|
*/
|
|
|
|
public function getEndDate()
|
|
|
|
{
|
|
|
|
return $this->EndDate;
|
2019-01-10 20:05:23 +01:00
|
|
|
}
|
|
|
|
|
2019-01-16 18:03:07 +01:00
|
|
|
/**
|
2019-01-18 18:10:56 +01:00
|
|
|
* @param integer$EndDate
|
2019-01-16 18:03:07 +01:00
|
|
|
*/
|
|
|
|
public function setEndDate($EndDate): void
|
|
|
|
{
|
|
|
|
$this->EndDate = $EndDate;
|
2019-01-10 20:05:23 +01:00
|
|
|
}
|
|
|
|
|
2019-01-16 18:03:07 +01:00
|
|
|
/**
|
2019-01-18 18:10:56 +01:00
|
|
|
* @return string
|
2019-01-16 18:03:07 +01:00
|
|
|
*/
|
|
|
|
public function getArbiter()
|
|
|
|
{
|
|
|
|
return $this->Arbiter;
|
2019-01-10 20:05:23 +01:00
|
|
|
}
|
|
|
|
|
2019-01-16 18:03:07 +01:00
|
|
|
/**
|
2019-01-18 18:10:56 +01:00
|
|
|
* @param string $Arbiter
|
2019-01-16 18:03:07 +01:00
|
|
|
*/
|
|
|
|
public function setArbiter($Arbiter): void
|
|
|
|
{
|
|
|
|
$this->Arbiter = $Arbiter;
|
2019-01-10 20:05:23 +01:00
|
|
|
}
|
|
|
|
|
2019-01-16 18:03:07 +01:00
|
|
|
/**
|
2019-01-18 18:10:56 +01:00
|
|
|
* @return integer
|
2019-01-16 18:03:07 +01:00
|
|
|
*/
|
|
|
|
public function getRounds()
|
|
|
|
{
|
|
|
|
return $this->Rounds;
|
2019-01-10 20:05:23 +01:00
|
|
|
}
|
|
|
|
|
2019-01-16 18:03:07 +01:00
|
|
|
/**
|
2019-01-18 18:10:56 +01:00
|
|
|
* @param integer $Rounds
|
2019-01-16 18:03:07 +01:00
|
|
|
*/
|
|
|
|
public function setRounds($Rounds): void
|
|
|
|
{
|
|
|
|
$this->Rounds = $Rounds;
|
2019-01-10 20:05:23 +01:00
|
|
|
}
|
|
|
|
|
2019-01-16 18:03:07 +01:00
|
|
|
/**
|
2019-01-18 18:10:56 +01:00
|
|
|
* @return integer
|
2019-01-16 18:03:07 +01:00
|
|
|
*/
|
|
|
|
public function getParticipants()
|
|
|
|
{
|
|
|
|
return $this->Participants;
|
2019-01-10 20:05:23 +01:00
|
|
|
}
|
|
|
|
|
2019-01-16 18:03:07 +01:00
|
|
|
/**
|
2019-01-18 18:10:56 +01:00
|
|
|
* @param integer $Participants
|
2019-01-16 18:03:07 +01:00
|
|
|
*/
|
|
|
|
public function setParticipants($Participants): void
|
|
|
|
{
|
|
|
|
$this->Participants = $Participants;
|
2019-01-10 20:05:23 +01:00
|
|
|
}
|
|
|
|
|
2019-01-16 18:03:07 +01:00
|
|
|
/**
|
2019-01-18 18:10:56 +01:00
|
|
|
* @return string
|
2019-01-16 18:03:07 +01:00
|
|
|
*/
|
|
|
|
public function getTempo()
|
|
|
|
{
|
|
|
|
return $this->Tempo;
|
2019-01-10 20:05:23 +01:00
|
|
|
}
|
|
|
|
|
2019-01-16 18:03:07 +01:00
|
|
|
/**
|
2019-01-18 18:10:56 +01:00
|
|
|
* @param string $Tempo
|
2019-01-16 18:03:07 +01:00
|
|
|
*/
|
|
|
|
public function setTempo($Tempo): void
|
|
|
|
{
|
|
|
|
$this->Tempo = $Tempo;
|
2019-01-10 20:05:23 +01:00
|
|
|
}
|
|
|
|
|
2019-01-16 18:03:07 +01:00
|
|
|
/**
|
2019-01-18 18:10:56 +01:00
|
|
|
* @return integer
|
2019-01-16 18:03:07 +01:00
|
|
|
*/
|
|
|
|
public function getNonRatedElo()
|
|
|
|
{
|
|
|
|
return $this->NonRatedElo;
|
2019-01-10 20:05:23 +01:00
|
|
|
}
|
|
|
|
|
2019-01-16 18:03:07 +01:00
|
|
|
/**
|
2019-01-18 18:10:56 +01:00
|
|
|
* @param integer $NonRatedElo
|
2019-01-16 18:03:07 +01:00
|
|
|
*/
|
|
|
|
public function setNonRatedElo($NonRatedElo): void
|
|
|
|
{
|
|
|
|
$this->NonRatedElo = $NonRatedElo;
|
2019-01-10 20:05:23 +01:00
|
|
|
}
|
|
|
|
|
2019-01-16 18:03:07 +01:00
|
|
|
/**
|
2019-01-18 18:10:56 +01:00
|
|
|
* @return integer
|
2019-01-16 18:03:07 +01:00
|
|
|
*/
|
|
|
|
public function getSystem()
|
|
|
|
{
|
|
|
|
return $this->System;
|
2019-01-10 20:05:23 +01:00
|
|
|
}
|
|
|
|
|
2019-01-16 18:03:07 +01:00
|
|
|
/**
|
2019-01-18 18:10:56 +01:00
|
|
|
* @param integer $System
|
2019-01-16 18:03:07 +01:00
|
|
|
*/
|
|
|
|
public function setSystem($System): void
|
|
|
|
{
|
|
|
|
$this->System = $System;
|
2019-01-10 20:05:23 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|