-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from Elao/php71/autodiscover_public_consts_only
AutoDiscoveredValuesTrait: do only autodiscover public constants
- Loading branch information
Showing
3 changed files
with
45 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the "elao/enum" package. | ||
* | ||
* Copyright (C) 2016 Elao | ||
* | ||
* @author Elao <contact@elao.com> | ||
*/ | ||
|
||
namespace Elao\Enum\Tests\Fixtures\Enum; | ||
|
||
use Elao\Enum\AutoDiscoveredValuesTrait; | ||
use Elao\Enum\Enum; | ||
|
||
final class Php71AutoDiscoveredEnum extends Enum | ||
{ | ||
use AutoDiscoveredValuesTrait; | ||
|
||
public const FOO = 'foo'; | ||
public const BAR = 'bar'; | ||
public const BAZ = 'baz'; | ||
|
||
private const PRIVATE = 'private'; | ||
protected const PROTECTED = 'protected'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters