Skip to content

Commit

Permalink
AppLaunchURL key
Browse files Browse the repository at this point in the history
Added AppLaunchURL key
  • Loading branch information
Dzamir committed Mar 18, 2014
1 parent 6007c74 commit 157d7ea
Showing 1 changed file with 32 additions and 3 deletions.
35 changes: 32 additions & 3 deletions src/Passbook/Pass.php
Expand Up @@ -162,14 +162,25 @@ class Pass implements PassInterface
protected $organizationName;

/**
* Date and time when the pass expires. * @var DateTime
* Date and time when the pass expires.
* @var DateTime
*/
protected $expirationDate;

/**
* ndicates that the pass is void—for example, a one time use coupon that has been redeemed. The default value is false. * @var boolean
* Indicates that the pass is void—for example, a one time use coupon that has been redeemed. The default value is false.
* @var boolean
*/
protected $voided;

/**
*
* A URL to be passed to the associated app when launching it.
* The app receives this URL in the application:didFinishLaunchingWithOptions: and application:handleOpenURL: methods of its app delegate.
* If this key is present, the associatedStoreIdentifiers key must also be present.
* @var string
*/
protected $appLaunchURL;

public function __construct($serialNumber, $description)
{
Expand Down Expand Up @@ -206,7 +217,8 @@ public function toArray()
'teamIdentifier',
'organizationName',
'expirationDate',
'voided'
'voided',
'appLaunchURL'
);
foreach ($properties as $property) {
$method = 'is'.ucfirst($property);
Expand Down Expand Up @@ -648,4 +660,21 @@ public function getVoided()
return $this->voided;
}

/**
* {@inheritdoc}
*/
public function setAppLaunchURL($appLaunchURL)
{
$this->appLaunchURL = $appLaunchURL;

return $this;
}

/**
* {@inheritdoc}
*/
public function getAppLaunchURL()
{
return $this->appLaunchURL;
}
}

0 comments on commit 157d7ea

Please sign in to comment.