118 lines
1.8 KiB
PHP
118 lines
1.8 KiB
PHP
<?php
|
|
|
|
namespace HermannTelser\Watten\Domain\Model;
|
|
|
|
use TYPO3\CMS\Extbase\DomainObject\AbstractEntity;
|
|
|
|
class Athleten extends AbstractEntity
|
|
{
|
|
/**
|
|
* @var int
|
|
*/
|
|
protected $gender = 0;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
protected $name = '';
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
protected $image = '';
|
|
|
|
/**
|
|
* @var int
|
|
*/
|
|
protected $isactive = 0;
|
|
|
|
|
|
public function __construct(int $gender = 0, string $name = '', string $image = '', int $isactive = 0)
|
|
{
|
|
$this->setGender($gender);
|
|
$this->setName($name);
|
|
$this->setImage($image);
|
|
$this->setIsactive($isactive);
|
|
}
|
|
|
|
/**
|
|
*
|
|
* @param int $gender
|
|
*
|
|
* @return void
|
|
*/
|
|
public function setGender(int $gender): void
|
|
{
|
|
$this->gender = $gender;
|
|
}
|
|
|
|
/**
|
|
*
|
|
* @return int
|
|
*/
|
|
public function getGender(): int
|
|
{
|
|
return $this->gender;
|
|
}
|
|
|
|
/**
|
|
*
|
|
* @param string $name
|
|
*
|
|
* @return void
|
|
*/
|
|
public function setName(string $name): void
|
|
{
|
|
$this->name = $name;
|
|
}
|
|
|
|
/**
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getName(): string
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
/**
|
|
*
|
|
* @param string $image
|
|
*
|
|
* @return void
|
|
*/
|
|
public function setImage(string $image): void
|
|
{
|
|
$this->image = $image;
|
|
}
|
|
|
|
/**
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getImage(): string
|
|
{
|
|
return $this->image;
|
|
}
|
|
|
|
/**
|
|
*
|
|
* @param int $isactive
|
|
*
|
|
* @return void
|
|
*/
|
|
public function setIsactive(int $isactive): void
|
|
{
|
|
$this->isactive = $isactive;
|
|
}
|
|
|
|
/**
|
|
*
|
|
* @return int
|
|
*/
|
|
public function getIsactive(): int
|
|
{
|
|
return $this->isactive;
|
|
}
|
|
}
|