Skip to content

Commit

Permalink
Add SiteID mock type #9660
Browse files Browse the repository at this point in the history
  • Loading branch information
stissot committed May 12, 2023
1 parent 385f048 commit 3be7ad8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/Api/Scalar/SiteIDType.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

declare(strict_types=1);

namespace Ecodev\Felix\Api\Scalar;

use GraphQL\Type\Definition\IDType;

// Mock a SiteID GraphQL type without the need of a Site model
class SiteIDType extends IDType
{
public $name = 'SiteID';

public $description = 'The ID of a site where a door is located';
}

0 comments on commit 3be7ad8

Please sign in to comment.