Skip to content

Commit

Permalink
Helper: Define as final static class.
Browse files Browse the repository at this point in the history
  • Loading branch information
janbarasek authored Oct 24, 2019
1 parent 1035c9f commit 4b84481
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,19 @@
namespace Baraja\GitLabApi;


class Helper
final class Helper
{

private const FORCE_ARRAY = 0b0001;

/**
* @throws \Error
*/
final public function __construct()
{
throw new \Error('Class ' . get_class($this) . ' is static and cannot be instantiated.');
}

/**
* Migrated from Nette/Tracy.
*
Expand Down Expand Up @@ -73,4 +81,4 @@ public static function getLastErrorMessage(): ?string
return $return;
}

}
}

0 comments on commit 4b84481

Please sign in to comment.