Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

Commit

Permalink
TTWEBTAKEN-196: Add sitenode bundle class
Browse files Browse the repository at this point in the history
  • Loading branch information
Michaelvdwalle committed Dec 20, 2023
1 parent 3e61777 commit 03e2a0a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
12 changes: 5 additions & 7 deletions src/Entity/SiteNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,22 @@ final class SiteNode extends Node implements SiteNodeInterface {
/**
* The site path.
*
* @var string
* @var null|string
*/
protected string $site_path;
private ?string $sitePath;

/**
* {@inheritDoc}
*/
public function getSitePath(): ?string {
return $this->get('site_path')->getString() ?: NULL;
return $this->sitePath ?? NULL;
}

/**
* {@inheritDoc}
*/
public function setSitePath($site_path): SiteNodeInterface {
$this->site_path = $site_path;

return $this;
public function setSitePath(string $sitePath): void {
$this->sitePath = $sitePath;
}

}
7 changes: 2 additions & 5 deletions src/Entity/SiteNodeInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@ public function getSitePath(): ?string;
/**
* Set the site path.
*
* @param $site_path
* @param string $sitePath
* The path of the site.
*
* @return SiteNodeInterface
* The site node.
*/
public function setSitePath($site_path): SiteNodeInterface;
public function setSitePath(string $sitePath): void;
}

0 comments on commit 03e2a0a

Please sign in to comment.