-
-
Notifications
You must be signed in to change notification settings - Fork 833
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
540b3cf
commit 0c26788
Showing
5 changed files
with
88 additions
and
4 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
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,24 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the NelmioApiDocBundle package. | ||
* | ||
* (c) Nelmio | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Nelmio\ApiDocBundle\Tests\Functional\Entity; | ||
|
||
use Nelmio\ApiDocBundle\Tests\Functional\TestKernel; | ||
|
||
if (TestKernel::isAnnotationsAvailable()) { | ||
class JMSEnum extends JMSEnum80 | ||
{ | ||
} | ||
} else { | ||
class JMSEnum extends JMSEnum81 | ||
{ | ||
} | ||
} |
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,45 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the NelmioApiDocBundle package. | ||
* | ||
* (c) Nelmio | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Nelmio\ApiDocBundle\Tests\Functional\Entity; | ||
|
||
use JMS\Serializer\Annotation as Serializer; | ||
|
||
class JMSEnum80 | ||
{ | ||
/** | ||
* @Serializer\Type("enum<Nelmio\ApiDocBundle\Tests\Functional\Entity\ArticleType81, 'value'>") | ||
* | ||
* @Serializer\Expose() | ||
*/ | ||
public $enumValue; | ||
|
||
/** | ||
* @Serializer\Type("array<enum<Nelmio\ApiDocBundle\Tests\Functional\Entity\ArticleType81, 'value'>>") | ||
* | ||
* @Serializer\Expose() | ||
*/ | ||
public $enumValues; | ||
|
||
/** | ||
* @Serializer\Type("enum<Nelmio\ApiDocBundle\Tests\Functional\Entity\ArticleType81, 'name'>") | ||
* | ||
* @Serializer\Expose() | ||
*/ | ||
public $enumName; | ||
|
||
/** | ||
* @Serializer\Type("array<enum<Nelmio\ApiDocBundle\Tests\Functional\Entity\ArticleType81, 'name'>>") | ||
* | ||
* @Serializer\Expose() | ||
*/ | ||
public $enumNames; | ||
} |
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