| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <?php
- declare(strict_types=1);
- namespace App\ApiResources\Utils;
- use ApiPlatform\Core\Annotation\ApiProperty;
- use ApiPlatform\Core\Annotation\ApiResource;
- /**
- * Classe resource qui contient les champs de vérification d'un siret
- */
- #[ApiResource(
- collectionOperations: [],
- itemOperations: [
- 'get' => [
- 'method' => 'GET',
- 'path' => '/siret-checking/{number}'
- ]
- ]
- )]
- class Siret
- {
- #[ApiProperty(identifier: true)]
- private ?string $number = null;
- private bool $isCorrect = false;
- public function __construct()
- {
- }
- public function getNumber(): ?string
- {
- return $this->number;
- }
- public function setNumber(?string $number): self
- {
- $this->number = $number;
- return $this;
- }
- public function setIsCorrect(bool $isCorrect): self
- {
- $this->isCorrect = $isCorrect;
- return $this;
- }
- public function getIsCorrect(): bool
- {
- return $this->isCorrect;
- }
- }
|