Slide 1

Slide 1 text

ɹ!shin1x1 2016//29 LBSBWFM0TBLB %%%ύλʔϯΛ׆༻ͨ͠ -BSBWFMΞϓϦέʔγϣϯ։ൃ

Slide 2

Slide 2 text

ର৅γεςϜ
 Ϣʔεέʔε

Slide 3

Slide 3 text

&$αΠτ ΧʔτʹೖΕΔ

Slide 4

Slide 4 text

%%%

Slide 5

Slide 5 text

D .BTBTIJ4IJOCBSB!TIJOY %PNBJO%SJWFO%FTJHO wʮΤϦοΫɾΤϰΝϯεͷυϝΠϯۦಈઃܭʯ wυϝΠϯʹϑΥʔΧεͨ͠ઃܭɺ։ൃख๏ wଟ͘ͷύλʔϯ͕঺հ͞Ε͍ͯΔ

Slide 6

Slide 6 text

D .BTBTIJ4IJOCBSB!TIJOY ιϑτ΢ΣΞͷυϝΠϯ wγεςϜͷର৅ྖҬɺղܾ͢Δ໰୊ྖҬ wۀ຿γεςϜͰ͋Ε͹ɺ
 ର৅ͷϏδωε͕υϝΠϯ wιʔείʔυ؅ཧγεςϜͰ͋Ε͹ɺ
 ιϑτ΢ΣΞ։ൃ͕υϝΠϯ wຊηογϣϯͰ͸ɺ&$αΠτ͕υϝΠϯ

Slide 7

Slide 7 text

ϢϏΩλεݴޠ

Slide 8

Slide 8 text

ϢϏΩλεݴޠ D .BTBTIJ4IJOCBSB!TIJOY wυϝΠϯ༻ޠࣙॻ
 ঎඼ɺΧʔτɺΧʔτʹ঎඼ΛೖΕΔɺͳͲ wϓϩδΣΫτνʔϜ಺Ͱಉ͡ݴ༿Λར༻
 ։ൃऀ΋ϏδωεΤΩεύʔτ΋શһ wͦͷݴ༿ΛίʔυͰ΋ར༻
 ʢ໊લۭؒɺΫϥεɺϝιου౳ʣ

Slide 9

Slide 9 text

ӳޠ ಺༰ ঎඼ *UFN ൢച͢Δ঎඼ɻԼهͷଐੑΛ࣋ͭɻ
 ɾ঎඼*% ɾ঎඼໊
 ɾ঎඼Ձ֨
 ɾࡏݿ ঎඼*% *UFN*E ঎඼Λࣝผ͢Δίʔυ
 ঎඼͝ͱʹҰҙ ঎඼໊ *UFN/BNF ঎඼ͷ໊শ ঎඼Ձ֨ *UFN1SJDF ঎඼ͷൢചՁ֨
 Ҏ্ͷ੔਺ ࡏݿ *UFN4UPDL ঎඼ͷࡏݿ਺ Ҏ্ͷ੔਺

Slide 10

Slide 10 text

ӳޠ ಺༰ Χʔτ $BSU ߪೖ͢Δ঎඼ΛҰ࣌֨ೲ͢ΔೖΕ෺
 ΧʔτཁૉΛෳ਺࣋ͭ Χʔτཁૉ $BSU&MFNFOU Χʔτʹ֨ೲ͞Ε͍ͯΔཁૉ
 ঎඼໊ͱ঎඼ݸ਺Λଐੑʹ࣋ͭ ঎඼ݸ਺ *UFN$PVOU ঎඼ͷݸ਺ɻҎ্ͷ੔਺ɻ Χʔτʹ঎඼Λ ೖΕΔ "EE*UFN5P$BSU Χʔτʹ঎඼ΛೖΕΔ͜ͱɻ
 ঎඼ͱ঎඼ݸ਺Λ༩͑Δɻ
 ঎඼ݸ਺͸঎඼ࡏݿҎԼͰ͋Δඞཁ ͕͋Δɻ

Slide 11

Slide 11 text

D .BTBTIJ4IJOCBSB!TIJOY ΧʔτʹೖΕΔ"1* 1045ϦΫΤετ͔Β঎඼*%ͱ঎඼ݸ਺Λऔಘ σʔλϕʔε͔Β঎඼*%Ͱ঎඼Λऔಘ Χʔτʹ঎඼ΛೖΕΔ ΧʔτΛηογϣϯʹอଘ ϨεϙϯεΛฦ͢

Slide 12

Slide 12 text

ϨΠϠʔυ ΞʔΩςΫνϟ

Slide 13

Slide 13 text

ϨΠϠʔυΞʔΩςΫνϟ D .BTBTIJ4IJOCBSB!TIJOY wγεςϜΛϨΠϠʢ૚ʣʹ෼ׂ wϨΠϠ͸ࣗ਎ͷ໾ׂΛ୲͏ wϨΠϠؒͰڠௐͯ͠ɺॲཧΛߦ͏ wϨΠϠؒͷྲྀΕ͸Ұํ௨ߦ

Slide 14

Slide 14 text

%%%&SJD&WBOT D .BTBTIJ4IJOCBSB!TIJOY UI Application Infrastructure Domain

Slide 15

Slide 15 text

D .BTBTIJ4IJOCBSB!TIJOY 6*-BZFS wϢʔβʢ࿈ܞγεςϜؚΉʣͱγεςϜͷ઀఺ wϢʔβ͸͜ͷϨΠϠΛ௨ͯ͡γεςϜʹ৮ΕΔ w)551 )5.- +40/ 45%*/ 45%065 wϏϡʔɺ3FRVFTUɺ3FTQPOTF

Slide 16

Slide 16 text

ඞཁ࠷௿ݶ͚ͩར༻ ͪ͜Βʹ࣮૷

Slide 17

Slide 17 text

ΞϓϦέʔγϣϯ υϝΠϯ ΠϯϑϥετϥΫνϟ

Slide 18

Slide 18 text

ϨΠϠؒͷྲྀΕ D .BTBTIJ4IJOCBSB!TIJOY UI Application Infrastructure Domain

Slide 19

Slide 19 text

υϝΠϯϨΠϠ

Slide 20

Slide 20 text

D .BTBTIJ4IJOCBSB!TIJOY ΧʔτʹೖΕΔ"1* 1045ϦΫΤετ͔Β঎඼*%ͱ঎඼ݸ਺Λऔಘ σʔλϕʔε͔Β঎඼*%Ͱ঎඼Λऔಘ Χʔτʹ঎඼ΛೖΕΔ ΧʔτΛηογϣϯʹอଘ ϨεϙϯεΛฦ͢

Slide 21

Slide 21 text

D .BTBTIJ4IJOCBSB!TIJOY υϝΠϯϨΠϠ wγεςϜͷυϝΠϯΛ࣮૷͢ΔϨΠϠ wυϝΠϯҎ֎ͷؔ৺ࣄ͸ؚΊͳ͍
 )551%#Ωϟογϡ౳ w1010Ͱ࣮૷͠ɺϑϨʔϜϫʔΫ͔Β͸ಠཱ
 'BDBEF΍ϔϧύʔؔ਺΋࢖Θͳ͍ wϞσϧɺαʔϏεɺΠϕϯτͳͲ

Slide 22

Slide 22 text

D .BTBTIJ4IJOCBSB!TIJOY ΤϯςΟςΟ wυϝΠϯϞσϧͷ࣮૷
 ঎඼ɺΧʔτ w&MPRVFOUΛܧঝ͠ͳ͍ wಉҰੑ͸ࣝผࢠʢJEʣͰ൑ผ wϛϡʔλϒϧ

Slide 23

Slide 23 text

D .BTBTIJ4IJOCBSB!TIJOY 7BMVF0CKFDU wՁ֨΍೔෇ͳͲϓϦϛςΟϒͳ஋Λࣔ͢
 ঎඼*%ɺ঎඼Ձ֨ɺࡏݿ wಉҰੑ͸ଐੑͰ൑ผ w஋ʹର͢Δ੍໿΍ৼΔ෣͍ʢԋࢉʣΛ࣮૷ wΠϛϡʔλϒϧ

Slide 24

Slide 24 text

D .BTBTIJ4IJOCBSB!TIJOY ঎඼ΤϯςΟςΟ ঎඼ΤϯςΟςΟ͸ҎԼͷଐੑΛ࣋ͭ ಺༰ ৼΔ෣͍ʢԋࢉʣ ঎඼*% ঎඼ͷࣝผࢠ ঎඼͝ͱʹҰҙ ͳ͠ ঎඼໊ ঎඼ͷ໊শ ͳ͠ ঎඼Ձ֨ ঎඼ͷՁ֨ Ҏ্ͷ੔਺ ɾ঎඼ݸ਺ͱͷֻ͚ࢉ ࡏݿ ঎඼ͷࡏݿ਺ Ҏ্ͷ੔਺ ɾࡏݿ͕ෆ଍͍ͯ͠Δ͔

Slide 25

Slide 25 text

&MPRVFOU 3FQPTJUPSZ class Item
 {
 /** @var int */
 private $id;
 
 /** @var string */
 private $name;
 
 /** @var int */
 private $price;
 
 /** @var int */
 private $stock;
 }
 int int int *UFNʢ঎඼ʣ

Slide 26

Slide 26 text

&MPRVFOU 3FQPTJUPSZ class Item
 {
 /** @var int */
 private $id;
 
 /** @var string */
 private $name;
 
 /** @var int */
 private $price;
 
 /** @var int */
 private $stock;
 }
 int int int *UFNʢ঎඼ʣ wυϝΠϯ͕൓ө͞Ε͍ͯͳ͍ wUIJTTUPDLUIJTTUPDL
 ͋Γ͑ͳ͍ԋࢉ͕Ͱ͖Δ wUIJTQSJDF
 ૝ఆ֎ͷ࢖͍ํ͞ΕΔ

Slide 27

Slide 27 text

&MPRVFOU 3FQPTJUPSZ class Item
 {
 /** @var ItemId */
 private $id;
 
 /** @var string */
 private $name;
 
 /** @var ItemPrice */
 private $price;
 
 /** @var Stock */
 private $stock;
 }
 ItemId ItemPrice Stock ܕʢΫϥεʣͰදݱ

Slide 28

Slide 28 text

&MPRVFOU 3FQPTJUPSZ class ItemId
 {
 /** @var int */
 private $value;
 
 /**
 * @param int $value
 */
 public function __construct(int $value)
 {
 $this->value = $value;
 }
 
 public function value(): int
 {
 return $this->value;
 }
 } *UFN*E ৼΔ෣͍ʢԋࢉʣ͕ແ͍

Slide 29

Slide 29 text

&MPRVFOU 3FQPTJUPSZ class ItemPrice
 {
 /** @var int */
 private $value;
 
 
 public function __construct(int $value = 0)
 {
 if ($value < 0) {
 throw new PreconditionsException('value must be positive number:' . $value);
 }
 $this->value = $value;
 }
 //(snip)
 
 *UFN1SJDF ঎඼Ձ֨͸Ҏ্ͷ੔਺

Slide 30

Slide 30 text

&MPRVFOU 3FQPTJUPSZ 
 public function multi(ItemCount $count): ItemSubtotal
 {
 return new ItemSubtotal($this->value * $count->value());
 }
 *UFN1SJDF ঎඼Ձ֨঎඼ݸ਺঎඼খܭ

Slide 31

Slide 31 text

D .BTBTIJ4IJOCBSB!TIJOY 7BMVF0CKFDUͷϙΠϯτ wϢϏΩλεݴޠΛίʔυͰදݱ
 ίʔυΛݟΕ͹࢓༷͕෼͔Δ wϝιουͰఆٛͨ͠ԋࢉ͔͠Ͱ͖ͳ͍
 ؒҧ͍ΛݮΒͤΔ w൚༻ܕͰ͸ͳ͘ಛԽܕͰ
 ʮ਺ࣈʯͰ͸ͳ͘ʮ঎඼Ձ֨ʯ wڽू౓্͕͕Γɺѻ͍΍͍͢ɻςετͷ༰қ

Slide 32

Slide 32 text

&MPRVFOU 3FQPTJUPSZ class Cart
 {
 /** @var CartElement[]|Collection */
 private $elements;
 
 public function addItem(Item $item, ItemCount $count)
 {
 if ($item->stock()->isInsufficient($count)) {
 throw new PreconditionsException('stock is insufficient');
 }
 
 $this->elements->push(new CartElement($item, $count));
 }
 $BSUΧʔτʹ঎඼ΛೖΕΔ ࡏݿ͕ෆ଍͍ͯ͠Δ͔ʁ

Slide 33

Slide 33 text

&MPRVFOU 3FQPTJUPSZ class Cart
 {
 /** @var CartElement[]|Collection */
 private $elements;
 
 public function addItem(Item $item, ItemCount $count)
 {
 if ($item->stock()->isInsufficient($count)) {
 throw new PreconditionsException('stock is insufficient');
 }
 
 $this->elements->push(new CartElement($item, $count));
 }
 $BSUΧʔτʹ঎඼ΛೖΕΔ ΧʔτཁૉΛ௥Ճ

Slide 34

Slide 34 text

D .BTBTIJ4IJOCBSB!TIJOY υϝΠϯϨΠϠͷ࣮૷ wϑϨʔϜϫʔΫ͔Βಠཱͯ͠1010Ͱ࣮૷ w$PMMFDUJPOͳͲυϝΠϯΛදݱ͢ΔൣғͳΒPL w7BMVF0CKFDUͰυϝΠϯಛԽܕΛ࡞Γɺ
 ϢϏΩλεݴޠΛදݱ wυϝΠϯϨΠϠͰ͸70Λ࠷খཻ౓ʹ͢Δ
 70಺Ҏ֎Ͱ͸εΧϥʔܕ͸࢖Θͳ͍ʢཧ૝ʣ

Slide 35

Slide 35 text

ΠϯϑϥετϥΫνϟϨΠϠ

Slide 36

Slide 36 text

D .BTBTIJ4IJOCBSB!TIJOY ΧʔτʹೖΕΔ"1* 1045ϦΫΤετ͔Β঎඼*%ͱ঎඼ݸ਺Λऔಘ σʔλϕʔε͔Β঎඼*%Ͱ঎඼Λऔಘ Χʔτʹ঎඼ΛೖΕΔ ΧʔτΛηογϣϯʹอଘ ϨεϙϯεΛฦ͢

Slide 37

Slide 37 text

D .BTBTIJ4IJOCBSB!TIJOY ΠϯϑϥετϥΫνϟϨΠϠ wσʔλετΞ΍ϝʔϧૹ৴ɺ֎෦"1*࿈ܞͳͲ
 Ұൠతͳٕज़ػೳΛఏڙ͢ΔϨΠϠ wϦϙδτϦɺΩϟογϡɺ"1*ΫϥΠΞϯτͳͲ w&MPRVFOU2VFSZ#VJMEFS$BDIF

Slide 38

Slide 38 text

D .BTBTIJ4IJOCBSB!TIJOY ϦϙδτϦ wϞσϧͱσʔλετΞͷؒʹհࡏ͠ɺ෼཭ wσʔλετΞ͔ΒͷϞσϧͷऔಘɺอଘૢ࡞Λ
 ΠϯλʔϑΣΠεͰఆٛ wσʔλετΞʹԠͯ͡ɺΠϯλʔϑΣΠεΛ࣮૷
 σʔλϕʔεɺ,74ɺϝϞϦͳͲ

Slide 39

Slide 39 text

D .BTBTIJ4IJOCBSB!TIJOY ঎඼৘ใͷऔಘ wυϝΠϯϞσϧ*UFNΫϥε wσʔλϕʔεJUFNTςʔϒϧ w*UFN*EΛҾ਺ʹऔΓɺ߹க͢Δ*UFNΛฦ͢

Slide 40

Slide 40 text

No content

Slide 41

Slide 41 text

ΠϯϑϥετϥΫνϟ $POUSPMMFS %BUB5SBOTGFS0CKFDU 3FQPTJUPSZ*OUFSGBDF 'PSN3FRVFTU "QQMJDBUJPO4FSWJDF ϑΝΠϧߏ੒%PNBJOϨΠϠ ϦϙδτϦ ΠϯλʔϑΣΠε

Slide 42

Slide 42 text

&MPRVFOU 3FQPTJUPSZ interface ItemRepository
 {
 public function findById(ItemId $id): Item;
 } *UFN3FQPTJUPSZ

Slide 43

Slide 43 text

ΠϯϑϥετϥΫνϟ $POUSPMMFS %BUB5SBOTGFS0CKFDU 3FQPTJUPSZ*OUFSGBDF 'PSN3FRVFTU "QQMJDBUJPO4FSWJDF ϑΝΠϧߏ੒*OGSBTUSVDUVSF ϦϙδτϦ &MPRVFOU

Slide 44

Slide 44 text

&MPRVFOU 3FQPTJUPSZ class EloquentItemRepository implements ItemRepository
 {
 private $eloquent;
 
 public function __construct(EloquentItem $eloquent)
 {
 $this->eloquent = $eloquent;
 }
 
 public function findById(ItemId $id): Item
 {
 $item = $this->eloquent->find($id->value());
 if (empty($item)) {
 throw new NotFoundException('item not found');
 }
 
 return $item->toDomain();
 }
 } &MPRVFOU*UFN3FQPTJUPSZ

Slide 45

Slide 45 text

&MPRVFOU 3FQPTJUPSZ class EloquentItemRepository implements ItemRepository
 {
 private $eloquent;
 
 public function __construct(EloquentItem $eloquent)
 {
 $this->eloquent = $eloquent;
 }
 
 public function findById(ItemId $id): Item
 {
 $item = $this->eloquent->find($id->value());
 if (empty($item)) {
 throw new NotFoundException('item not found');
 }
 
 return $item->toDomain();
 }
 } &MPRVFOU*UFN3FQPTJUPSZ

Slide 46

Slide 46 text

&MPRVFOU 3FQPTJUPSZ class EloquentItem extends AppEloquent implements Domainable
 {
 protected $table = 'items';
 
 public function toDomain(): Item
 {
 return new Item(
 new ItemId($this->id),
 $this->name,
 new ItemPrice($this->price),
 new Stock($this->stock)
 );
 }
 } &MPRVFOU*UFN

Slide 47

Slide 47 text

&MPRVFOU 3FQPTJUPSZ class RepositoryServiceProvider extends ServiceProvider
 {
 public function register()
 {
 $this->app->bind(ItemRepository::class, EloquentItemRepository::class);
 }
 } ϦϙδτϦΛαʔϏείϯςφ΁όΠϯυ

Slide 48

Slide 48 text

&MPRVFOU 3FQPTJUPSZ class AddItemToCart
 {
 private $itemRepo;
 
 public function __construct(ItemRepository $itemRepo)
 {
 $this->itemRepo = $itemRepo;
 }
 
 public function add(int $itemId, int $count): Cart
 {
 $item = $this->itemRepo->findById(new ItemId($itemId));
 // (snip)
 }
 }
 ར༻ίʔυ

Slide 49

Slide 49 text

D .BTBTIJ4IJOCBSB!TIJOY ϦϙδτϦ&MPRVFOU w&MPRVFOUΛ1FSTJTUFODF.PEFMʹ࢖͏ wΠϯϑϥετϥΫνϟϨΠϠͷ
 ϦϙδτϦ࣮૷ʹด͡ࠐΊΔ wଞϨΠϠͰ&MPRVFOU͸جຊ࢖Θͳ͍
 ʢϑϨʔϜϫʔΫར༻࣌͸আ͘ʣ

Slide 50

Slide 50 text

D .BTBTIJ4IJOCBSB!TIJOY ϦϙδτϦͷϝϦοτ wσʔλετΞ΍ΞΫηεखஈͷ੾ସ͕༰қ
 ຊ൪͸1PTUHSF42-ςετ͸ϝϞϦ wυϝΠϯϨΠϠ͔ΒσʔλετΞ΁ͷ࣮૷Λഉআ
 υϝΠϯϨΠϠ͸ΠϯλʔϑΣΠεͷϝιουΛݺͿ͚ͩ wඞཁͳσʔλετΞ΁ͷૢ࡞Λ໌ࣔ
 7BMVF0CKFDUͱಉ༷

Slide 51

Slide 51 text

ΞϓϦέʔγϣϯϨΠϠ

Slide 52

Slide 52 text

D .BTBTIJ4IJOCBSB!TIJOY ΧʔτʹೖΕΔ"1* 1045ϦΫΤετ͔Β঎඼*%ͱ঎඼ݸ਺Λऔಘ σʔλϕʔε͔Β঎඼*%Ͱ঎඼Λऔಘ Χʔτʹ঎඼ΛೖΕΔ ΧʔτΛηογϣϯʹอଘ ϨεϙϯεΛฦ͢

Slide 53

Slide 53 text

D .BTBTIJ4IJOCBSB!TIJOY ΞϓϦέʔγϣϯϨΠϠ wγεςϜͷίϯτϩʔϧΛ୲͏ϨΠϠ wϢʔεέʔεͷྲྀΕΛ࡞Γɺ۩ମతͳॲཧ͸
 υϝΠϯ΍ΠϯϑϥετϥΫνϟʹҕৡ w3PVUF$POUSPMMFS"QQMJDBUJPO4FSWJDF

Slide 54

Slide 54 text

&MPRVFOU 3FQPTJUPSZ public function post(Request $request, AddItemToCart $service): JsonResponse
 {
 $this->validate($request, [
 'item_id' => 'required|integer',
 'count' => 'required|integer'
 ]);
 
 $cart = $service->add(
 $request->get('item_id'),
 $request->get('count')
 );
 
 return $this->ok(['cart' => $this->cartToArray($cart)]);
 } $POUSPMMFS ͬ͘͟ΓόϦσʔγϣϯ
 ʢυϝΠϯϧʔϧ͸υϝΠϯϨΠϠͰʣ

Slide 55

Slide 55 text

&MPRVFOU 3FQPTJUPSZ public function post(Request $request, AddItemToCart $service): JsonResponse
 {
 $this->validate($request, [
 'item_id' => 'required|integer',
 'count' => 'required|integer'
 ]);
 
 $cart = $service->add(
 $request->get('item_id'),
 $request->get('count')
 );
 
 return $this->ok(['cart' => $this->cartToArray($cart)]);
 } $POUSPMMFS ΞϓϦέʔγϣϯαʔϏε࣮ߦ

Slide 56

Slide 56 text

&MPRVFOU 3FQPTJUPSZ public function add(int $itemId, int $count): Cart
 {
 $item = $this->itemRepo->findById(new ItemId($itemId));
 
 try {
 $cart = $this->cartRepo->find();
 } catch (NotFoundException $e) {
 $cart = new Cart();
 }
 
 $cart->addItem($item, new ItemCount($count));
 $this->cartRepo->store($cart);
 
 return $cart;
 }
 "QQMJDBUJPO4FSWJDF

Slide 57

Slide 57 text

·ͱΊ

Slide 58

Slide 58 text

D .BTBTIJ4IJOCBSB!TIJOY ·ͱΊ wυϝΠϯϨΠϠ͕ओɺͦΕҎ֎͸ै
 υϝΠϯϨΠϠͦ͜ΞϓϦέʔγϣϯ
 มԽͷૣ͍-BSBWFM͔ͩΒͦ͜ wυϝΠϯʹಛԽ࣮ͨ͠૷ w-BSBWFM͸ࣗ༝౓ͷߴ͍ϑϨʔϜϫʔΫ w஌ݟΛͲΜͲΜڞ༗͠Α͏ʂ

Slide 59

Slide 59 text

D .BTBTIJ4IJOCBSB!TIJOY !TIJOY !TIJOY D .BTBTIJ4IJOCBSB!TIJOY

Slide 60

Slide 60 text

"QQFOEJY

Slide 61

Slide 61 text

D .BTBTIJ4IJOCBSB!TIJOY ͲΕ͔Β͸͡ΊΔʁ 7BMVF0CKFDU

Slide 62

Slide 62 text

D .BTBTIJ4IJOCBSB!TIJOY ୈҰาͱͯ͠ w੍໿͕͋Δ΋ͷɺԋࢉΛߦ͏΋ͷΛ70Խ wՁ֨ɺ೔෇ɺಛघͳ஋ʢ঎඼ίʔυͱ͔ʣ wJOUʹͯ͠΋ɺ$BSCPOʹͯ͠΋ૢ࡞͕๛෋
 υϝΠϯͰٻΊΒΕ͍ͯΔૢ࡞͕ݟ͑ͳ͍
 ஀ੜ೔ʹ࣌ؒ΍೔෇ͷ଍͠ࢉͱ͔͍Βͳ͍ wυϝΠϯಛԽܕͱͯ͠ΫϥεԽ

Slide 63

Slide 63 text

&MPRVFOU 3FQPTJUPSZ class DateOfBirth
 {
 /** @var Carbon */
 private $date;
 
 public function __construct(Carbon $date)
 {
 $this->date = $date;
 }
 
 public function age(): int
 {
 return $this->date->age;
 }
 } ੜ೥݄೔Λ7BMVF0CKFDUԽ $BSCPOΛϥοϓ ඞཁͳૢ࡞ͷΈ࣮૷

Slide 64

Slide 64 text

D .BTBTIJ4IJOCBSB!TIJOY શ෦7BMVF0CKFDUʹ͢Δʁ w࣮ࡍɺखؒ͸͔͔Δ wJEʢJOUʣɺOBNFʢTUSJOHʣ͸70ʹͤͣ w70ʹ͢ΔͱɺϢϏΩλεݴޠΛਂ͘ߟ͑Δ
 ੍໿ɺඞཁͳૢ࡞ wڽू౓ͷߴ͍খ͞ͳΫϥεͷ࢖͍উखͷྑ͞
 ͜Εͦ͜ɺΦϒδΣΫτࢦ޲։ൃ