当前位置: 首页>>代码示例>>PHP>>正文


PHP Utilities\ArrayUtil类代码示例

本文整理汇总了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']);
     }
 }
开发者ID:caravanarentals,项目名称:php-wrapper,代码行数:10,代码来源:CreateVehicleFeatureRequest.php

示例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']);
     }
 }
开发者ID:caravanarentals,项目名称:php-wrapper,代码行数:10,代码来源:CreateVendorInviteRequest.php

示例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']);
     }
 }
开发者ID:caravanarentals,项目名称:php-wrapper,代码行数:10,代码来源:FuelType.php

示例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']);
     }
 }
开发者ID:caravanarentals,项目名称:php-wrapper,代码行数:10,代码来源:UpdatePasswordRequest.php

示例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']);
     }
 }
开发者ID:caravanarentals,项目名称:php-wrapper,代码行数:10,代码来源:CreateFixedMileageFeeRequest.php

示例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);
     }
 }
开发者ID:turboship,项目名称:locations-php,代码行数:7,代码来源:BasePaginatableRequest.php

示例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']);
     }
 }
开发者ID:caravanarentals,项目名称:php-wrapper,代码行数:12,代码来源:CreateUserInviteRequest.php

示例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));
     }
 }
开发者ID:jamesvweston,项目名称:usps-php,代码行数:8,代码来源:AddressVerifyResponse.php

示例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']);
     }
 }
开发者ID:caravanarentals,项目名称:php-wrapper,代码行数:8,代码来源:CreateDurationDiscountRequest.php

示例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']));
     }
 }
开发者ID:turboship,项目名称:locations-php,代码行数:8,代码来源:PostalDistrictSubdivision.php

示例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']);
     }
 }
开发者ID:turboship,项目名称:locations-php,代码行数:8,代码来源:GetSubdivisionTypesRequest.php

示例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']));
     }
 }
开发者ID:caravanarentals,项目名称:php-wrapper,代码行数:11,代码来源:DateTime.php

示例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']);
     }
 }
开发者ID:turboship,项目名称:api-php,代码行数:12,代码来源:CreateAccessTokenResponse.php

示例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']);
     }
 }
开发者ID:caravanarentals,项目名称:php-wrapper,代码行数:12,代码来源:CreateSeasonRequest.php

示例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']));
     }
 }
开发者ID:turboship,项目名称:locations-php,代码行数:9,代码来源:Country.php


注:本文中的jamesvweston\Utilities\ArrayUtil类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。