本文整理汇总了PHP中jamesvweston\Utilities\ArrayUtil类的典型用法代码示例。如果您正苦于以下问题:PHP ArrayUtil类的具体用法?PHP ArrayUtil怎么用?PHP ArrayUtil使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了ArrayUtil类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* @param array|null $data
*/
public function __construct($data = null)
{
if (is_array($data)) {
$this->featureId = AU::get($data['featureId']);
$this->value = AU::get($data['value']);
}
}
示例2: __construct
/**
* @param array|null $data
*/
public function __construct($data = null)
{
if (is_array($data)) {
$this->vendorId = AU::get($data['vendorId']);
$this->userId = AU::get($data['userId']);
}
}
示例3: __construct
/**
* @param array|null $data
*/
public function __construct($data = null)
{
if (is_array($data)) {
$this->id = AU::get($data['id']);
$this->name = AU::get($data['name']);
}
}
示例4: __construct
/**
* @param array|null $data
*/
public function __construct($data = null)
{
if (is_array($data)) {
$this->currentPassword = AU::get($data['currentPassword']);
$this->newPassword = AU::get($data['newPassword']);
}
}
示例5: __construct
/**
* @param array|null $data
*/
public function __construct($data = null)
{
if (is_array($data)) {
$this->freeMiles = AU::get($data['freeMiles']);
$this->mileageFee = AU::get($data['mileageFee']);
}
}
示例6: __construct
public function __construct($data = null)
{
if (is_array($data)) {
$this->limit = AU::get($data['limit'], 80);
$this->page = AU::get($data['page'], 1);
}
}
示例7: __construct
/**
* CreateUserInvite constructor.
* @param array|null $data
*/
public function __construct($data = null)
{
if (is_array($data)) {
$this->firstName = AU::get($data['firstName']);
$this->lastName = AU::get($data['lastName']);
$this->email = AU::get($data['email']);
}
}
示例8: __construct
public function __construct($data)
{
$data = AU::get($data['AddressValidateResponse']);
$addresses = AU::isArrays($data['Address']) ? $data['Address'] : [$data['Address']];
foreach ($addresses as $item) {
$this->addItem(new AddressVerifyResponseItem($item));
}
}
示例9: __construct
public function __construct($data = null)
{
if (is_array($data)) {
$this->minimumDays = AU::get($data['minimumDays']);
$this->percentDiscount = AU::get($data['percentDiscount']);
$this->rentalId = AU::get($data['rentalId']);
}
}
示例10: __construct
public function __construct($data = null)
{
if (is_array($data)) {
$this->id = AU::get($data['id']);
$this->setPostalDistrict(AU::get($data['postalDistrict']));
$this->setSubdivision(AU::get($data['subdivision']));
}
}
示例11: __construct
public function __construct($data = null)
{
parent::__construct($data);
if (is_array($data)) {
$this->ids = AU::get($data['ids']);
$this->names = AU::get($data['names']);
}
}
示例12: __construct
/**
* @param array|null $data
*/
public function __construct($data = null)
{
if (is_array($data)) {
$this->date = AU::get($data['date']);
$this->timeZoneType = AU::get($data['timezone_type'], AU::get($data['timeZoneType']));
$this->timeZone = AU::get($data['timezone'], AU::get($data['timeZone']));
}
}
示例13: __construct
/**
* AccessTokenResponse constructor.
* @param array|null $data
*/
public function __construct($data = null)
{
if (is_array($data)) {
$this->access_token = AU::get($data['access_token']);
$this->token_type = AU::get($data['token_type']);
$this->expires_in = AU::get($data['expires_in']);
}
}
示例14: __construct
/**
* @param array|null $data
*/
public function __construct($data = null)
{
if (is_array($data)) {
$this->vendorId = AU::get($data['vendorId']);
$this->startDate = AU::get($data['startDate']);
$this->endDate = AU::get($data['endDate']);
$this->name = AU::get($data['name']);
}
}
示例15: __construct
public function __construct($data = null)
{
if (is_array($data)) {
$this->id = AU::get($data['id']);
$this->name = AU::get($data['name']);
$this->iso2 = AU::get($data['iso2']);
$this->setContinent(AU::get($data['continent']));
}
}