Last active
August 13, 2021 14:47
-
-
Save aryadiahmad4689/51862adb4c5bebb354a6a57ca256db2e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Customer\Entity; | |
Class CustomerEntity { | |
protected $nama; | |
protected $alamat; | |
protected $umur; | |
/** | |
* to set nama | |
* @var nama string | |
*/ | |
public function setNama(string $nama){ | |
$this->nama = $nama; | |
return $this; | |
} | |
/** | |
* to get nama | |
*/ | |
public function getNama() : string{ | |
return $this->nama; | |
} | |
/** | |
* to set alamat | |
* @var alamat string | |
*/ | |
public function setAlamat(string $alamat){ | |
$this->alamat = $alamat; | |
return $this; | |
} | |
/** | |
* to get alamat | |
*/ | |
public function getAlamat() : string{ | |
return $this->alamat; | |
} | |
/** | |
* to set umur | |
* @var umur string | |
*/ | |
public function setUmur(int $umur){ | |
$this->umur = $umur; | |
return $this; | |
} | |
/** | |
* to get umur | |
*/ | |
public function getUmur() : int{ | |
return $this->umur; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment