interface DecoderInterface

Defines the interface of decoders

@author Jordi Boggiano <j.boggiano@seld.be>

Hierarchy

Expanded class hierarchy of DecoderInterface

All classes that implement DecoderInterface

2 files declare their use of DecoderInterface
ChainDecoder.php in drupal/core/vendor/symfony/serializer/Symfony/Component/Serializer/Encoder/ChainDecoder.php
Serializer.php in drupal/core/vendor/symfony/serializer/Symfony/Component/Serializer/Serializer.php

File

drupal/core/vendor/symfony/serializer/Symfony/Component/Serializer/Encoder/DecoderInterface.php, line 19

Namespace

Symfony\Component\Serializer\Encoder
View source
interface DecoderInterface {

  /**
   * Decodes a string into PHP data
   *
   * @param scalar $data   Data to decode
   * @param string $format Format name
   *
   * @return mixed
   */
  public function decode($data, $format);

  /**
   * Checks whether the serializer can decode from given format
   *
   * @param string $format format name
   * @return Boolean
   */
  public function supportsDecoding($format);

}

Members

Namesort descending Modifiers Type Description Overrides
DecoderInterface::decode public function Decodes a string into PHP data 5
DecoderInterface::supportsDecoding public function Checks whether the serializer can decode from given format 5