Skip to content

Commit

Permalink
Add enum method hints to enable static analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
spaze committed May 25, 2019
1 parent 946ce58 commit 8d5aa0d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ErrorCorrectionLevel.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@
use MyCLabs\Enum\Enum;
use BaconQrCode\Common\ErrorCorrectionLevel as BaconErrorCorrectionLevel;

/**
* @method static ErrorCorrectionLevel LOW()
* @method static ErrorCorrectionLevel MEDIUM()
* @method static ErrorCorrectionLevel QUARTILE()
* @method static ErrorCorrectionLevel HIGH()
*/
class ErrorCorrectionLevel extends Enum
{
const LOW = 'low';
Expand Down
5 changes: 5 additions & 0 deletions src/LabelAlignment.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@

use MyCLabs\Enum\Enum;

/**
* @method static LabelAlignment LEFT()
* @method static LabelAlignment CENTER()
* @method static LabelAlignment RIGHT()
*/
class LabelAlignment extends Enum
{
const LEFT = 'left';
Expand Down

0 comments on commit 8d5aa0d

Please sign in to comment.