diff --git a/plugins/Poll/Controller/NewPoll.php b/plugins/Poll/Controller/NewPoll.php index 620b8ec2e7..8aee7ce8fd 100644 --- a/plugins/Poll/Controller/NewPoll.php +++ b/plugins/Poll/Controller/NewPoll.php @@ -30,6 +30,16 @@ use App\Util\Exception\RedirectException; use Plugin\Poll\Forms\NewPollForm; use Symfony\Component\HttpFoundation\Request; +/** + * Create a Poll + * + * @package GNUsocial + * @category PollPlugin + * + * @author Daniel Brandao + * @copyright 2020 Free Software Foundation, Inc http://www.fsf.org + * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later + */ const MAX_OPTS = 5; const MIN_OPTS = 2; diff --git a/plugins/Poll/Controller/ShowPoll.php b/plugins/Poll/Controller/ShowPoll.php index 87b57814b3..9d717faa55 100644 --- a/plugins/Poll/Controller/ShowPoll.php +++ b/plugins/Poll/Controller/ShowPoll.php @@ -26,6 +26,16 @@ use App\Util\Common; use App\Util\Exception\NotFoundException; use Symfony\Component\HttpFoundation\Request; +/** + * Show a Poll + * + * @package GNUsocial + * @category PollPlugin + * + * @author Daniel Brandao + * @copyright 2020 Free Software Foundation, Inc http://www.fsf.org + * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later + */ class ShowPoll { /** diff --git a/plugins/Poll/Forms/PollResponseForm.php b/plugins/Poll/Forms/PollResponseForm.php index abc9699217..3881c0d9fd 100644 --- a/plugins/Poll/Forms/PollResponseForm.php +++ b/plugins/Poll/Forms/PollResponseForm.php @@ -27,6 +27,16 @@ use Symfony\Component\Form\Extension\Core\Type\ChoiceType; use Symfony\Component\Form\Extension\Core\Type\SubmitType; use Symfony\Component\Form\Form as SymfForm; +/** + * Form to respond a Poll + * + * @package GNUsocial + * @category PollPlugin + * + * @author Daniel Brandao + * @copyright 2020 Free Software Foundation, Inc http://www.fsf.org + * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later + */ class PollResponseForm extends Form { /** diff --git a/plugins/Poll/Poll.php b/plugins/Poll/Poll.php index d4b4147dbf..7aa6c9be36 100644 --- a/plugins/Poll/Poll.php +++ b/plugins/Poll/Poll.php @@ -25,6 +25,16 @@ use App\Core\Module; use App\Core\Router\RouteLoader; use Symfony\Bundle\FrameworkBundle\Controller\RedirectController; +/** + * Poll plugin main class + * + * @package GNUsocial + * @category PollPlugin + * + * @author Daniel Brandao + * @copyright 2020 Free Software Foundation, Inc http://www.fsf.org + * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later + */ const ID_FMT = '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}'; /** diff --git a/src/Entity/Poll.php b/src/Entity/Poll.php index a8e09a9bcd..18f8895ab1 100644 --- a/src/Entity/Poll.php +++ b/src/Entity/Poll.php @@ -25,6 +25,16 @@ use App\Core\DB\DB; use App\Core\Entity; use DateTimeInterface; +/** + * For storing a poll + * + * @package GNUsocial + * @category PollPlugin + * + * @author Daniel Brandao + * @copyright 2020 Free Software Foundation, Inc http://www.fsf.org + * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later + */ class Poll extends Entity { // {{{ Autocode diff --git a/src/Entity/PollResponse.php b/src/Entity/PollResponse.php index 4db79ac977..2ed74f0409 100644 --- a/src/Entity/PollResponse.php +++ b/src/Entity/PollResponse.php @@ -25,6 +25,16 @@ use App\Core\DB\DB; use App\Core\Entity; use DateTimeInterface; +/** + * For storing a poll response + * + * @package GNUsocial + * @category PollPlugin + * + * @author Daniel Brandao + * @copyright 2020 Free Software Foundation, Inc http://www.fsf.org + * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later + */ class PollResponse extends Entity { // {{{ Autocode