2022-11-26 15:48:30 +00:00
|
|
|
<?php
|
|
|
|
|
2023-12-31 08:34:04 +00:00
|
|
|
namespace Wallabag\CoreBundle\Entity\Api;
|
2022-11-26 15:48:30 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|