當前位置: 首頁>>代碼示例>>PHP>>正文


PHP ArrayUtil::get方法代碼示例

本文整理匯總了PHP中jamesvweston\Utilities\ArrayUtil::get方法的典型用法代碼示例。如果您正苦於以下問題:PHP ArrayUtil::get方法的具體用法?PHP ArrayUtil::get怎麽用?PHP ArrayUtil::get使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在jamesvweston\Utilities\ArrayUtil的用法示例。


在下文中一共展示了ArrayUtil::get方法的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::get方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。