| 1 | <?php |
||
| 15 | class ReferableNormalizer implements NormalizerInterface |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var array |
||
| 19 | */ |
||
| 20 | protected $allowedformats; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Constructor |
||
| 24 | * |
||
| 25 | * @param array $allowedformats |
||
| 26 | */ |
||
| 27 | public function __construct(array $allowedformats) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * {@inheritdoc} |
||
| 34 | */ |
||
| 35 | public function normalize($object, $format = null, array $context = array()) |
||
| 45 | |||
| 46 | /** |
||
| 47 | * {@inheritdoc} |
||
| 48 | */ |
||
| 49 | public function supportsNormalization($data, $format = null) |
||
| 53 | } |
||
| 54 |