PHP Class Scalr\Model\Entity\WebhookEndpoint

Since: 4.5.2 (11.03.2014)
Author: Vitaliy Demidov ([email protected])
Inheritance: extends Scalr\Model\AbstractEntity, implements Scalr\DataType\ScopeInterface
Show file Open project: scalr/scalr Class Usage Examples

Public Properties

Property Type Description
$accountId integer The identifier of the client's account
$endpointId string The identifier of the webhook endpoint
$envId integer The identifier of the client's environment
$isValid boolean
$level integer The level
$securityKey string
$url string Endpoint url
$validationToken string

Public Methods

Method Description
__construct ( ) Constructor
getScope ( )
setScope ( $scope, $accountId, $envId )
validateUrl ( ) : boolean Validates url

Method Details

__construct() public method

Constructor
public __construct ( )

getScope() public method

See also: Scalr\DataType\ScopeInterface::getScope()
public getScope ( )

setScope() public method

public setScope ( $scope, $accountId, $envId )

validateUrl() public method

Validates url
public validateUrl ( ) : boolean
return boolean Returns true if url endpoint passes validation. It saves updated properties itself on success

Property Details

$accountId public property

The identifier of the client's account
public int $accountId
return integer

$endpointId public property

The identifier of the webhook endpoint
public string $endpointId
return string

$envId public property

The identifier of the client's environment
public int $envId
return integer

$isValid public property

public bool $isValid
return boolean

$level public property

The level
public int $level
return integer

$securityKey public property

public string $securityKey
return string

$url public property

Endpoint url
public string $url
return string

$validationToken public property

public string $validationToken
return string