From 425acf0fcfea21abd3adcabcfff5942c69c37a18 Mon Sep 17 00:00:00 2001 From: Fendo181 Date: Tue, 19 Mar 2019 10:26:17 +0900 Subject: [PATCH 1/4] =?UTF-8?q?phpdoc=E3=81=A7=E5=BF=85=E8=A6=81=E3=81=AA?= =?UTF-8?q?=E3=83=A9=E3=82=A4=E3=83=96=E3=83=A9=E3=83=AA=E3=82=92=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 ++ composer.json | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/.gitignore b/.gitignore index aa44aaf..efd7147 100644 --- a/.gitignore +++ b/.gitignore @@ -74,3 +74,5 @@ fabric.properties # End of https://www.gitignore.io/api/phpstorm /vendor/ + +composer.lock diff --git a/composer.json b/composer.json index 9a46399..99518ad 100644 --- a/composer.json +++ b/composer.json @@ -8,5 +8,9 @@ ], "require": { + }, + "require-dev": { + "phpdocumentor/phpdocumentor": "^2.9", + "jms/serializer": "1.7.*" } } From d059d7438d392bf0fd8d360ae6628c41211040ef Mon Sep 17 00:00:00 2001 From: Fendo181 Date: Tue, 19 Mar 2019 10:37:02 +0900 Subject: [PATCH 2/4] =?UTF-8?q?=E7=B0=A1=E5=8D=98=E3=81=AA=E3=82=AF?= =?UTF-8?q?=E3=83=A9=E3=82=B9=E3=82=92=E4=BD=9C=E6=88=90=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- phpDoc/src/Animal.php | 49 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 phpDoc/src/Animal.php diff --git a/phpDoc/src/Animal.php b/phpDoc/src/Animal.php new file mode 100644 index 0000000..5dafc80 --- /dev/null +++ b/phpDoc/src/Animal.php @@ -0,0 +1,49 @@ +name = $name; + $this->voice = $voice; + + } + + public function bark() + { + echo $this->voice; + } + + public function getName() + { + return $this->name; + } + + public function setName($name) + { + if(isset($name)){ + return 'please my name'; + } + + $this->name = $name; + } +} + + +$dog = new Dog('ポコちゃん'); +$dog->bark(); +$name = $dog->getName(); +echo $name; + + +$fuwa = new Dog('ふわちゃん','こんにちは!'); +$fuwa->bark(); +$fuwa->getName(); +$name = $fuwa->getName(); +echo $name; + + From adf39b64c91b688c3f8e5f0a5b424f2a211c16d5 Mon Sep 17 00:00:00 2001 From: Fendo181 Date: Tue, 19 Mar 2019 10:40:12 +0900 Subject: [PATCH 3/4] =?UTF-8?q?=E4=BD=99=E8=A8=88=E3=81=AA=E6=94=B9?= =?UTF-8?q?=E8=A1=8C=E3=81=8C=E3=81=82=E3=81=A3=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- phpDoc/src/Animal.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/phpDoc/src/Animal.php b/phpDoc/src/Animal.php index 5dafc80..680ebba 100644 --- a/phpDoc/src/Animal.php +++ b/phpDoc/src/Animal.php @@ -44,6 +44,4 @@ public function setName($name) $fuwa->bark(); $fuwa->getName(); $name = $fuwa->getName(); -echo $name; - - +echo $name; \ No newline at end of file From a091df22699e3851b983eacc8c0eb1c5136e3c16 Mon Sep 17 00:00:00 2001 From: Fendo181 Date: Tue, 19 Mar 2019 10:42:14 +0900 Subject: [PATCH 4/4] =?UTF-8?q?=E3=81=B5=E3=82=8F=E3=81=A1=E3=82=83?= =?UTF-8?q?=E3=82=93=20is=E3=80=80=E8=AA=B0=EF=BC=9F=E3=81=A8=E3=81=AA?= =?UTF-8?q?=E3=81=A3=E3=81=9F=E3=81=AE=E3=81=A7=E3=80=81=E6=99=AE=E9=80=9A?= =?UTF-8?q?=E3=81=ABAnimal=E3=82=AF=E3=83=A9=E3=82=B9=E3=81=AB=E6=88=BB?= =?UTF-8?q?=E3=81=97=E3=81=A6=E3=81=A1=E3=82=83=E3=82=93=E3=81=A8=E3=82=AF?= =?UTF-8?q?=E3=83=A9=E3=82=B9=E3=81=BD=E3=81=84=E6=9B=B8=E3=81=8D=E6=96=B9?= =?UTF-8?q?=E3=82=92=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- phpDoc/src/Animal.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/phpDoc/src/Animal.php b/phpDoc/src/Animal.php index 680ebba..9e8bdcb 100644 --- a/phpDoc/src/Animal.php +++ b/phpDoc/src/Animal.php @@ -1,6 +1,6 @@ bark(); +$dog = new Animal('Dog'); $name = $dog->getName(); echo $name; +$dog->bark(); -$fuwa = new Dog('ふわちゃん','こんにちは!'); -$fuwa->bark(); -$fuwa->getName(); -$name = $fuwa->getName(); -echo $name; \ No newline at end of file +$cat = new Animal('Cat','ニャーニャー'); +$cat->getName(); +$name = $cat->getName(); +echo $name; +$cat->bark(); \ No newline at end of file