Version

Represent informations about the version of a software on Github server.

package

Default

Methods

Set basic informations about the version.

__construct(string $number, string $zip) 

Arguments

$number

string

Number of the version

$zip

string

Url address of a place where from it's possible do download a zip file with a software

Return a date and time when the version has been created.

getCreated() : \DateTime

Response

\DateTime

Return a number of the version.

getNumber() : string

Response

string

Return a date and time when the version has been published.

getPublished() : \DateTime

Response

\DateTime

Return an url where are available informations about the version.

getUrl() : string

Response

string

Return an url address of a place where from it's possible do download a zip file with a software.

getZip() : string

Response

string

Return a flag which is true if the given version number is older than number from the object.

isNewAvailable(string $checkedNumber) : boolean

Arguments

$checkedNumber

string

Number of checked version

Response

boolean

Set a date and time when the version has been created.

setCreated(\DateTime $created) : \Dotpay\Resource\Github\Version

Arguments

$created

\DateTime

Date and time when the version has been created

Response

\Dotpay\Resource\Github\Version

Set a number of the version.

setNumber(string $number) : \Dotpay\Resource\Github\Version

Arguments

$number

string

Number of the version

Response

\Dotpay\Resource\Github\Version

Set a date and time when the version has been published.

setPublished(\DateTime $published) : \Dotpay\Resource\Github\Version

Arguments

$published

\DateTime

Date and time when the version has been published

Response

\Dotpay\Resource\Github\Version

Set an url where are available informations about the version.

setUrl(string $url) : \Dotpay\Resource\Github\Version
Throws
\Dotpay\Exception\BadParameter\UrlException

Arguments

$url

string

Url where are available informations about the version

Response

\Dotpay\Resource\Github\Version

Set an url address of a place where from it's possible do download a zip file with a software.

setZip(string $zip) : \Dotpay\Resource\Github\Version
Throws
\Dotpay\Exception\BadParameter\UrlException

Arguments

$zip

string

Url address of a place where from it's possible do download a zip file with a software

Response

\Dotpay\Resource\Github\Version

Properties

Number of the version

number : string
var

Number of the version

Type(s)

string

Url where are available informations about the version

url : string
var

Url where are available informations about the version

Type(s)

string

Url address of a place where from it's possible do download a zip file with a software

zip : string
var

Url address of a place where from it's possible do download a zip file with a software

Type(s)

string

Date and time when the version has been created

created : \DateTime
var

Date and time when the version has been created

Type(s)

\DateTime

Date and time when the version has been published

published : \DateTime
var

Date and time when the version has been published

Type(s)

\DateTime