mirror of
https://framagit.org/tom79/fediplan.git
synced 2025-04-07 06:31:49 +02:00
47 lines
691 B
PHP
47 lines
691 B
PHP
![]() |
<?php
|
||
|
|
||
|
|
||
|
namespace App\SocialEntity;
|
||
|
|
||
|
|
||
|
class PollOption
|
||
|
{
|
||
|
/** @var string */
|
||
|
private $title;
|
||
|
/** @var int */
|
||
|
private $votes_count;
|
||
|
|
||
|
/**
|
||
|
* @return string
|
||
|
*/
|
||
|
public function getTitle(): string
|
||
|
{
|
||
|
return $this->title;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @param string $title
|
||
|
*/
|
||
|
public function setTitle(string $title): void
|
||
|
{
|
||
|
$this->title = $title;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @return int
|
||
|
*/
|
||
|
public function getVotesCount(): int
|
||
|
{
|
||
|
return $this->votes_count;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @param int $votes_count
|
||
|
*/
|
||
|
public function setVotesCount(int $votes_count): void
|
||
|
{
|
||
|
$this->votes_count = $votes_count;
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|