{"action":"closed","issue":{"url":"https://api.github.com/repos/ModernPUG/iamport-rest-client-modern-php/issues/10","repository_url":"https://api.github.com/repos/ModernPUG/iamport-rest-client-modern-php","labels_url":"https://api.github.com/repos/ModernPUG/iamport-rest-client-modern-php/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/ModernPUG/iamport-rest-client-modern-php/issues/10/comments","events_url":"https://api.github.com/repos/ModernPUG/iamport-rest-client-modern-php/issues/10/events","html_url":"https://github.com/ModernPUG/iamport-rest-client-modern-php/issues/10","id":136306164,"number":10,"title":"IamportResult 클래스 사용 방식 변경","user":{"login":"tael","id":1206713,"avatar_url":"https://avatars.githubusercontent.com/u/1206713?v=3","gravatar_id":"","url":"https://api.github.com/users/tael","html_url":"https://github.com/tael","followers_url":"https://api.github.com/users/tael/followers","following_url":"https://api.github.com/users/tael/following{/other_user}","gists_url":"https://api.github.com/users/tael/gists{/gist_id}","starred_url":"https://api.github.com/users/tael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tael/subscriptions","organizations_url":"https://api.github.com/users/tael/orgs","repos_url":"https://api.github.com/users/tael/repos","events_url":"https://api.github.com/users/tael/events{/privacy}","received_events_url":"https://api.github.com/users/tael/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-25T07:31:18Z","updated_at":"2016-03-01T11:07:05Z","closed_at":"2016-03-01T11:07:05Z","body":"IamportResult 클래스는 \r\n```\r\n    public $success = false;\r\n    public $data;\r\n    public $error;\r\n```\r\n에 값을 세팅하고 그 내용을 사용합니다.\r\n\r\n에러가 있으면 throw exception 하면 될일이고, exception 안났으면 $success=true 일 일인데 왜 바로 $data를 안주는 지 모르겠습니다.\r\nResult는 데이터 오브젝트로 사용하고, 성패를 결정하고 판단하는 것은 exception 을 적극 활용하도록 변경해야 합니다.\r\n"}}