mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-07-29 01:58:56 +02:00
* feat: initial commit for feature management * style: fix StyleCI findings * fix(api): prohibit features of nonnull scope from API & fix(admin): wrong translate key * style: fix Static Analysis error
26 lines
472 B
PHP
26 lines
472 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Http\Api\Field\Admin\Feature;
|
|
|
|
use App\Http\Api\Field\StringField;
|
|
use App\Http\Api\Schema\Schema;
|
|
use App\Models\Admin\Feature;
|
|
|
|
/**
|
|
* Class FeatureNameField.
|
|
*/
|
|
class FeatureNameField extends StringField
|
|
{
|
|
/**
|
|
* Create a new field instance.
|
|
*
|
|
* @param Schema $schema
|
|
*/
|
|
public function __construct(Schema $schema)
|
|
{
|
|
parent::__construct($schema, Feature::ATTRIBUTE_NAME);
|
|
}
|
|
}
|