PHP Class Scalr\Tests\Functional\Api\V2\SpecSchema\DataTypes\AbstractSpecObject

Since: 5.11 (03.12.2015)
Author: Andrii Penchuk ([email protected])
Inheritance: extends stdClass
Mostra file Open project: scalr/scalr Class Usage Examples

Protected Properties

Property Type Description
$objectName string

Public Methods

Method Description
__construct ( string $name = '' ) AbstractSpecObject constructor.
__set ( string $name, mixed $value ) Magic setter. If the name begins with the 'x-' function will delete this section
getObjectName ( ) : string Returns current object name
init ( string $name ) : ApiEntity | DetailsResponse | ListResponse | ObjectEntity | Property Initializes the object depending of the name in Api specifications

Method Details

__construct() public method

AbstractSpecObject constructor.
public __construct ( string $name = '' )
$name string

__set() public method

Magic setter. If the name begins with the 'x-' function will delete this section
public __set ( string $name, mixed $value )
$name string property name
$value mixed property value

getObjectName() public method

Returns current object name
public getObjectName ( ) : string
return string

init() public static method

Initializes the object depending of the name in Api specifications
public static init ( string $name ) : ApiEntity | DetailsResponse | ListResponse | ObjectEntity | Property
$name string object name
return ApiEntity | DetailsResponse | ListResponse | ObjectEntity | Property

Property Details

$objectName protected_oe property

protected string $objectName
return string