Przeglądaj źródła

CodeStyle Add public to constructor

Ecconia 7 lat temu
rodzic
commit
437c9b3ffc

+ 1 - 1
src/Application/AppPattern.php

@@ -6,7 +6,7 @@ class AppPattern {
 	public $instruction;
 	public $fields;
 
-	function __construct() {
+	public function __construct() {
 		$this->instruction = 'First impressions are important. Please tell us about yourself. A well-written application is likely to speed up your approval on the server, while a poorly written one might not get approved at all. 2-3 well-written sentences per question is recommended.';
 		
 		$this->fields = json_decode('[

+ 1 - 1
src/Application/Application.php

@@ -12,7 +12,7 @@ class Application {
 	public $state;
 	public $time;
 
-	function __construct(User $user, AppPattern $pattern, int $time, Array $answers, $state) {
+	public function __construct(User $user, AppPattern $pattern, int $time, Array $answers, $state) {
 		$this->user = $user;
 		$this->pattern = $pattern;
 		$this->answers = $answers;

+ 1 - 1
src/User.php

@@ -5,7 +5,7 @@ namespace RS;
 class User {
 	public $username;
 
-	function __construct(string $username) {
+	public function __construct(string $username) {
 		$this->username = $username;
 	}
 }