commit 31a9f8776d464908056dbcaca5931037b78c1eae Author: stas Date: Fri May 17 16:07:25 2024 +0300 first diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..485dee6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..7a73a41 --- /dev/null +++ b/composer.json @@ -0,0 +1,2 @@ +{ +} \ No newline at end of file diff --git a/index.php b/index.php new file mode 100644 index 0000000..63b23b3 --- /dev/null +++ b/index.php @@ -0,0 +1,13 @@ +foolName(); +$p1 = new Information($fn, 'hfd', '11', '+7', '11111111', 'ashg@ajhi'); +$p1->writeInformation(); \ No newline at end of file diff --git a/src/Information.php b/src/Information.php new file mode 100644 index 0000000..2d78dfe --- /dev/null +++ b/src/Information.php @@ -0,0 +1,28 @@ +foolName = $foolName; + $this->gender = $gender; + $this->DateOfBirthday = $DateOfBirthday; + $this->countryCode = $countryCode; + $this->phoneNumber = $phoneNumber; + $this->email = $email; + } + public function writeInformation() + { + echo $this->foolName . ";" . $this->gender . ";" . $this->DateOfBirthday . ";" . $this->countryCode . $this->phoneNumber . ";" . $this->email . ";"; + } +} + diff --git a/src/fullName.php b/src/fullName.php new file mode 100644 index 0000000..7e49b5a --- /dev/null +++ b/src/fullName.php @@ -0,0 +1,19 @@ +name = $surname . " " . $name . " " . $patronymic; + } + public function foolName() + { + return $this->name; + } +}