Overview
  • Namespace
  • Class
  • Tree

Namespaces

  • Modulework
    • Modules
      • Http
        • Exceptions
        • Utilities
  • PHP

Classes

  • ArrayCase
  • FileCase
  • HeaderCase
  • HeaderWrapper
  • IpValidator
  • ServerCase

Interfaces

  • ArrayCaseInterface
  • HeaderWrapperInterface
  • IpValidatorInterface

Class HeaderCase

ArrayCase is an OOP way of handling arrays Adds:

  • getDate()
Modulework\Modules\Http\Utilities\ArrayCase implements Modulework\Modules\Http\Utilities\ArrayCaseInterface, Countable, IteratorAggregate
Extended by Modulework\Modules\Http\Utilities\HeaderCase
Namespace: Modulework\Modules\Http\Utilities
Located at Modulework/Modules/Http/Utilities/HeaderCase.php

Methods summary

public null|DateTime
# getDate( string $key, DateTime $default = null )

Get the header value converted to a date

Get the header value converted to a date

Parameters

$key
string
$key The header name
$default
DateTime
$default The default value

Returns

null|DateTime
The parsed DateTime or default

Throws

RuntimeExecptopm
when header not parseable by \DateTime
public
# showForResponse( )

Methods inherited from Modulework\Modules\Http\Utilities\ArrayCase

__construct(), all(), count(), get(), getIterator(), has(), keys(), merge(), mock(), push(), remove(), set()

Magic methods summary

Properties summary

Properties inherited from Modulework\Modules\Http\Utilities\ArrayCase

$array

API documentation generated by ApiGen 2.8.0