PHP Class Swagger\Serializer

Show file Open project: zircote/swagger-php Class Usage Examples

Public Methods

Method Description
deserialize ( $jsonString, $className ) : AbstractAnnotation Deserialize
isValidClassName ( $className )
serialize ( AbstractAnnotation $annotation ) : string Serialize.

Private Methods

Method Description
doDeserialize ( stdClass $c, string $class ) : AbstractAnnotation Do deserialization.
doDeserializeProperty ( AbstractAnnotation $annotation, string $property, mixed $value ) : mixed Deserialize the annotation's property.
getDefinedNames ( )

Method Details

deserialize() public method

Deserialize
public deserialize ( $jsonString, $className ) : AbstractAnnotation
$jsonString
$className
return Swagger\Annotations\AbstractAnnotation

isValidClassName() public static method

public static isValidClassName ( $className )

serialize() public method

Serialize.
public serialize ( AbstractAnnotation $annotation ) : string
$annotation Swagger\Annotations\AbstractAnnotation
return string