mirror of
https://github.com/quentin-g-dev/afup.git
synced 2026-03-26 02:02:15 +01:00
37 lines
602 B
PHP
37 lines
602 B
PHP
<?php
|
|
|
|
namespace AppBundle\Planete;
|
|
|
|
use PlanetePHP\Feed;
|
|
use Symfony\Component\Validator\Constraints as Assert;
|
|
|
|
class FeedFormData
|
|
{
|
|
/**
|
|
* @var string
|
|
* @Assert\NotBlank()
|
|
*/
|
|
public $name;
|
|
/**
|
|
* @var string
|
|
* @Assert\NotBlank()
|
|
* @Assert\Url()
|
|
*/
|
|
public $url = 'https://';
|
|
/**
|
|
* @var string
|
|
* @Assert\NotBlank()
|
|
* @Assert\Url()
|
|
*/
|
|
public $feed = 'https://';
|
|
/**
|
|
* @var int|null
|
|
*/
|
|
public $userId;
|
|
/**
|
|
* @var int
|
|
* @Assert\Choice({0, 1})
|
|
*/
|
|
public $status = Feed::STATUS_ACTIVE;
|
|
}
|