Inheritance: extends App\Entities\Setting\AbstractSettingEntity
コード例 #1
0
 public function test_Should_SetAndGetUrl()
 {
     $appSettingEntity = new AppSettingEntity();
     $appSettingEntity->setUrl('http://example.com');
     $url = $appSettingEntity->getUrl();
     $this->assertEquals('http://example.com', $url);
 }
コード例 #2
0
ファイル: ConfigAppSetting.php プロジェクト: ngmy/webloyer
 public function all()
 {
     $url = $this->reader->getConfig('APP_URL');
     $appSetting = new AppSettingEntity();
     $appSetting->setUrl($url);
     return $appSetting;
 }