/** @inheritdoc */ public function jsonSerialize() { return ArrayHelper::merge(parent::jsonSerialize(), ['name' => $this->name, 'bemSelector' => $this->bemSelector, 'parentBemSelector' => $this->parentBemSelector, 'definition' => $this->definition, 'description' => $this->description, 'workingDirectory' => $this->workingDirectory, 'variablesMapper' => $this->getVariablesMapper()]); }
/** * Array of values for json serialization * @return array */ public function jsonSerialize() { return ArrayHelper::merge(parent::jsonSerialize(), ['name' => $this->name, 'type' => $this->type, 'value' => $this->value]); }