Skip to content

Commit

Permalink
Merge pull request #10 from slovensko-digital/bugfix/response-headers
Browse files Browse the repository at this point in the history
fix for correct url string for atlassian
  • Loading branch information
DominikBohucak authored Oct 2, 2023
2 parents cc77bbd + fc926e2 commit bb1751d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 19 deletions.
16 changes: 8 additions & 8 deletions application/src/Model/AtlassianIdeaModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@

class AtlassianIdeaModel implements AttlassianIssueModel
{
private string $serviceDeskId;
private string $requestTypeId;
private string $summary;
private string $description;
private string $name;
private string $surname;
private string $email;
private string $phone;
protected string $serviceDeskId;
protected string $requestTypeId;
protected string $summary;
protected string $description;
protected string $name;
protected string $surname;
protected string $email;
protected string $phone;

public function __construct(
$summary = '',
Expand Down
12 changes: 1 addition & 11 deletions application/src/Model/AtlassianProblemModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@

class AtlassianProblemModel extends AtlassianIdeaModel
{
private string $url;
private string $requestTypeId;
protected string $url;

public function __construct(
$summary = '',
Expand All @@ -31,15 +30,6 @@ public function __construct(
$this->url = $url;
}

public function fromArray(array $data = []): void
{
foreach ($data as $key => $value) {
if (property_exists($this, $key)) {
$this->{$key} = $value;
}
}
}

public function toArray(): array
{
$data = parent::toArray();
Expand Down

0 comments on commit bb1751d

Please sign in to comment.