AwsInspector\Model\AbstractResource::__construct PHP Метод

__construct() публичный Метод

public __construct ( array $apiData, Manager $profileManager = null )
$apiData array
$profileManager StackFormation\Profile\Manager
    public function __construct(array $apiData, \StackFormation\Profile\Manager $profileManager = null)
    {
        $this->apiData = $apiData;
        $this->profileManager = is_null($profileManager) ? new \StackFormation\Profile\Manager() : $profileManager;
    }

Usage Example

Пример #1
0
 public function __construct(array $apiData, \StackFormation\Profile\Manager $profileManager = null)
 {
     $normalizedApiData = [];
     foreach ($apiData as $key => $value) {
         $normalizedApiData[ucfirst($key)] = $value;
     }
     parent::__construct($normalizedApiData, $profileManager);
 }