PHP Класс DataSift_HistoricPreview

This software is the intellectual property of MediaSift Ltd., and is covered by retained intellectual property rights, including copyright. Distribution of this software is strictly forbidden under the terms of this license. The DataSift_HistoricPreview class represents a private source
Автор: Courtney Robinson ([email protected])
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( DataSift_User $user, array $data = [] ) Constructs a new DataSift_HistoricPreview
create ( ) : DataSift_HistoricPreview Create the preview represented by the parameters in this object
fromResponse ( array $data ) : DataSift_HistoricPreview Hydrates this preview from an array of API responses
get ( DataSift_User $user, string $id ) : DataSift_HistoricPreview Gets a single DataSift_HistoricPreview object by ID
getCreatedAt ( ) : integer Gets the created-at timestamp
getData ( )
getEnd ( ) : string Gets the timestamp this report ends at
getFeeds ( )
getHash ( ) : string
getId ( ) : string Gets this DataSift_HistoricPreview's unique identifier
getParameters ( ) : array Gets the parameters for this DataSift_HistoricPreview
getProgress ( )
getSample ( )
getStart ( ) : string Gets the timestamp this report starts at
getStatus ( )
getUser ( ) : DataSift_User Gets the user this DataSift_HistoricPreview belongs to
setCreatedAt ( integer $createdAt ) Sets the created-at timestamp
setEnd ( string $end ) Sets the timestamp this report ends
setHash ( string $hash )
setId ( string $id ) Sets this DataSift_HistoricPreview's unique identifier
setParameters ( array $parameters ) Sets the parameters for this DataSift_HistoricPreview
setStart ( string $start ) Sets the timestamp this report starts
setUser ( DataSift_User $user ) Sets the user this DataSift_HistoricPreview belongs to
toArray ( ) : array Converts this Source to an array suitable for transmission to the API

Защищенные методы

Метод Описание
setData ( $data )
setFeeds ( $feeds )
setProgress ( $progress )
setSample ( $sample )
setStatus ( $status )

Описание методов

__construct() публичный Метод

Constructs a new DataSift_HistoricPreview
public __construct ( DataSift_User $user, array $data = [] )
$user DataSift_User
$data array

create() публичный Метод

Create the preview represented by the parameters in this object
public create ( ) : DataSift_HistoricPreview
Результат DataSift_HistoricPreview

fromResponse() публичный Метод

Hydrates this preview from an array of API responses
public fromResponse ( array $data ) : DataSift_HistoricPreview
$data array
Результат DataSift_HistoricPreview

get() публичный статический Метод

Gets a single DataSift_HistoricPreview object by ID
public static get ( DataSift_User $user, string $id ) : DataSift_HistoricPreview
$user DataSift_User The user making the request.
$id string The id of the Source to fetch
Результат DataSift_HistoricPreview

getCreatedAt() публичный Метод

Gets the created-at timestamp
public getCreatedAt ( ) : integer
Результат integer A UNIX timestamp

getData() публичный Метод

public getData ( )

getEnd() публичный Метод

Gets the timestamp this report ends at
public getEnd ( ) : string
Результат string

getFeeds() публичный Метод

public getFeeds ( )

getHash() публичный Метод

public getHash ( ) : string
Результат string

getId() публичный Метод

Gets this DataSift_HistoricPreview's unique identifier
public getId ( ) : string
Результат string

getParameters() публичный Метод

Gets the parameters for this DataSift_HistoricPreview
public getParameters ( ) : array
Результат array

getProgress() публичный Метод

public getProgress ( )

getSample() публичный Метод

public getSample ( )

getStart() публичный Метод

Gets the timestamp this report starts at
public getStart ( ) : string
Результат string

getStatus() публичный Метод

public getStatus ( )

getUser() публичный Метод

Gets the user this DataSift_HistoricPreview belongs to
public getUser ( ) : DataSift_User
Результат DataSift_User

setCreatedAt() публичный Метод

Sets the created-at timestamp
public setCreatedAt ( integer $createdAt )
$createdAt integer

setData() защищенный Метод

protected setData ( $data )

setEnd() публичный Метод

Sets the timestamp this report ends
public setEnd ( string $end )
$end string

setFeeds() защищенный Метод

protected setFeeds ( $feeds )

setHash() публичный Метод

public setHash ( string $hash )
$hash string

setId() публичный Метод

Sets this DataSift_HistoricPreview's unique identifier
public setId ( string $id )
$id string

setParameters() публичный Метод

Sets the parameters for this DataSift_HistoricPreview
public setParameters ( array $parameters )
$parameters array

setProgress() защищенный Метод

protected setProgress ( $progress )

setSample() защищенный Метод

protected setSample ( $sample )

setStart() публичный Метод

Sets the timestamp this report starts
public setStart ( string $start )
$start string

setStatus() защищенный Метод

protected setStatus ( $status )

setUser() публичный Метод

Sets the user this DataSift_HistoricPreview belongs to
public setUser ( DataSift_User $user )
$user DataSift_User

toArray() публичный Метод

Converts this Source to an array suitable for transmission to the API
public toArray ( ) : array
Результат array