mirror of
https://github.com/wallabag/wallabag.git
synced 2024-05-20 01:58:06 +00:00
45 lines
935 B
PHP
45 lines
935 B
PHP
<?php
|
|
|
|
namespace Wallabag\CoreBundle\Entity\Api;
|
|
|
|
use OpenApi\Annotations as OA;
|
|
|
|
class ApplicationInfo
|
|
{
|
|
/**
|
|
* @var string
|
|
* @OA\Property(
|
|
* description="Name of the application.",
|
|
* type="string",
|
|
* example="wallabag",
|
|
* )
|
|
*/
|
|
public $appname;
|
|
|
|
/**
|
|
* @var string
|
|
* @OA\Property(
|
|
* description="Version number of the application.",
|
|
* type="string",
|
|
* example="2.5.2",
|
|
* )
|
|
*/
|
|
public $version;
|
|
|
|
/**
|
|
* @var bool
|
|
* @OA\Property(
|
|
* description="Indicates whether registration is allowed. See PUT /api/user.",
|
|
* type="boolean"
|
|
* )
|
|
*/
|
|
public $allowed_registration;
|
|
|
|
public function __construct($version, $allowed_registration)
|
|
{
|
|
$this->appname = 'wallabag';
|
|
$this->version = $version;
|
|
$this->allowed_registration = $allowed_registration;
|
|
}
|
|
}
|