Skip to content

Commit

Permalink
Comments updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre-T committed Jul 24, 2024
1 parent ccb55a5 commit 08911d7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/LongitudeOne/BinaryWriter/Writer.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,23 @@ public function convert(SpatialInterface $spatial): string
return $this->strategy->executeStrategy($spatial);
}

/**
* Get the current strategy.
*
* @return BinaryStrategyInterface
*/
public function getStrategy(): BinaryStrategyInterface
{
return $this->strategy;
}

/**
* Set a new strategy to use.
*
* @param BinaryStrategyInterface $strategy the strategy to use
*
* @return static the current instance
*/
public function setStrategy(BinaryStrategyInterface $strategy): self
{
$this->strategy = $strategy;
Expand Down

0 comments on commit 08911d7

Please sign in to comment.