__construct() public method

Constructor
public __construct ( array $attributes = [] )
$attributes array attributes
Example #1
0
 /**
  * constructor
  *
  * @param array $attributes attributes array
  */
 public function __construct(array $attributes = [])
 {
     parent::__construct($attributes);
     $grantInfo = isset($attributes['grants']) ? json_decode($attributes['grants'], true) : [];
     $this->grant = new Grant($grantInfo);
 }
 /**
  * SettingsMenu constructor.
  *
  * @param array $attributes 메뉴정보
  */
 public function __construct(array $attributes = [])
 {
     $this->resolveParentId($attributes);
     parent::__construct($attributes);
 }
 /**
  * constructor
  *
  * @param array $attributes name and variables
  */
 public function __construct(array $attributes = [])
 {
     parent::__construct($attributes);
     $this->setValueObject($attributes);
 }