api/symfony/Component/Serializer/Context/Normalizer/DateTimeNormalizerContextBuilder.yaml

62 lines
1.9 KiB
YAML
Raw Normal View History

2024-09-26 09:03:21 +00:00
name: DateTimeNormalizerContextBuilder
class_comment: null
dependencies:
- name: ContextBuilderInterface
type: class
source: Symfony\Component\Serializer\Context\ContextBuilderInterface
- name: ContextBuilderTrait
type: class
source: Symfony\Component\Serializer\Context\ContextBuilderTrait
- name: InvalidArgumentException
type: class
source: Symfony\Component\Serializer\Exception\InvalidArgumentException
- name: DateTimeNormalizer
type: class
source: Symfony\Component\Serializer\Normalizer\DateTimeNormalizer
- name: ContextBuilderTrait
type: class
source: ContextBuilderTrait
properties: []
methods:
- name: withFormat
visibility: public
parameters:
- name: format
comment: "# * A helper providing autocompletion for available DateTimeNormalizer\
\ options.\n# *\n# * @author Mathias Arlaud <mathias.arlaud@gmail.com>\n# */\n\
# final class DateTimeNormalizerContextBuilder implements ContextBuilderInterface\n\
# {\n# use ContextBuilderTrait;\n# \n# /**\n# * Configures the format of the date.\n\
# *\n# * @see https://secure.php.net/manual/en/datetime.format.php"
- name: withTimezone
visibility: public
parameters:
- name: timezone
comment: '# * Configures the timezone of the date.
# *
# * It could be either a \DateTimeZone or a string
# * that will be used to construct the \DateTimeZone
# *
# * @see https://secure.php.net/manual/en/class.datetimezone.php
# *
# * @throws InvalidArgumentException'
- name: withCast
visibility: public
parameters:
- name: cast
comment: '# * @param ''int''|''float''|null $cast'
traits:
- Symfony\Component\Serializer\Context\ContextBuilderInterface
- Symfony\Component\Serializer\Context\ContextBuilderTrait
- Symfony\Component\Serializer\Exception\InvalidArgumentException
- Symfony\Component\Serializer\Normalizer\DateTimeNormalizer
- ContextBuilderTrait
interfaces:
- ContextBuilderInterface