make constructors protected
This commit is contained in:
parent
146c07e2cf
commit
23977c122e
2 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@ class TwingleEvent extends Campaign {
|
||||||
*
|
*
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
public function __construct(array $event, string $origin) {
|
protected function __construct(array $event, string $origin) {
|
||||||
parent::__construct($event, $origin);
|
parent::__construct($event, $origin);
|
||||||
|
|
||||||
$this->className = (new \ReflectionClass($this))->getShortName();
|
$this->className = (new \ReflectionClass($this))->getShortName();
|
||||||
|
|
|
@ -28,7 +28,7 @@ class TwingleProject extends Campaign {
|
||||||
*
|
*
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
public function __construct(array $project, string $origin) {
|
protected function __construct(array $project, string $origin) {
|
||||||
parent::__construct($project, $origin);
|
parent::__construct($project, $origin);
|
||||||
|
|
||||||
$this->className = (new \ReflectionClass($this))->getShortName();
|
$this->className = (new \ReflectionClass($this))->getShortName();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue