*/
trait ApiMessageTrait {
protected $apiCode = null;
- protected $apiData = array();
+ protected $apiData = [];
public function getApiCode() {
return $this->apiCode === null ? $this->getKey() : $this->apiCode;
}
public function serialize() {
- return serialize( array(
+ return serialize( [
'parent' => parent::serialize(),
'apiCode' => $this->apiCode,
'apiData' => $this->apiData,
- ) );
+ ] );
}
public function unserialize( $serialized ) {