Skip to content

Instantly share code, notes, and snippets.

@ismail1432
Last active January 5, 2022 11:01
Show Gist options
  • Save ismail1432/5b4fa0e6f7408c14029e98110dacbd5b to your computer and use it in GitHub Desktop.
Save ismail1432/5b4fa0e6f7408c14029e98110dacbd5b to your computer and use it in GitHub Desktop.
<?php
class StatusType extends AbstractEnumType
{
public const NAME = 'status';
public function getName(): string // the name of the type.
{
return self::NAME;
}
public static function getEnumsClass(): string // the enums class to convert
{
return Status::class;
}
}
@ismail1432
Copy link
Author

Hello @thewalkingcoder
MERCI pour ton retour,
en effet, j'ai corrigé.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment