yoti-8.x-2.5/sdk/Yoti/Entity/ApplicationProfile.php
sdk/Yoti/Entity/ApplicationProfile.php
<?php
namespace Yoti\Entity;
/**
* Profile of an application with convenience methods to access well-known attributes.
*/
class ApplicationProfile extends BaseProfile
{
const ATTR_APPLICATION_LOGO = 'application_logo';
const ATTR_APPLICATION_NAME = 'application_name';
const ATTR_APPLICATION_URL = 'application_url';
const ATTR_APPLICATION_RECEIPT_BG_COLOR = 'application_receipt_bgcolor';
/**
* The name of the application.
*
* @return null|Attribute
*/
public function getApplicationName()
{
return $this->getProfileAttribute(self::ATTR_APPLICATION_NAME);
}
/**
* The URL where the application is available at.
*
* @return null|Attribute
*/
public function getApplicationUrl()
{
return $this->getProfileAttribute(self::ATTR_APPLICATION_URL);
}
/**
* The logo of the application that will be displayed to users that perform a share with it.
*
* @return null|Attribute
* The Attribute value will be of type Yoti\Entity\Image
*/
public function getApplicationLogo()
{
return $this->getProfileAttribute(self::ATTR_APPLICATION_LOGO);
}
/**
* The background colour that will be displayed on each receipt the user gets, as a result
* of a share with the application.
*
* @return null|Attribute
*/
public function getApplicationReceiptBgColor()
{
return $this->getProfileAttribute(self::ATTR_APPLICATION_RECEIPT_BG_COLOR);
}
}
