{"action":"closed","issue":{"url":"https://api.github.com/repos/JuniorSolutions/bsa-2018-php-2/issues/1","repository_url":"https://api.github.com/repos/JuniorSolutions/bsa-2018-php-2","labels_url":"https://api.github.com/repos/JuniorSolutions/bsa-2018-php-2/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/JuniorSolutions/bsa-2018-php-2/issues/1/comments","events_url":"https://api.github.com/repos/JuniorSolutions/bsa-2018-php-2/issues/1/events","html_url":"https://github.com/JuniorSolutions/bsa-2018-php-2/issues/1","id":322788171,"number":1,"title":"Завдання: класс “Fighter”","user":{"login":"JuniorSolutions","id":23285640,"avatar_url":"https://avatars3.githubusercontent.com/u/23285640?v=4","gravatar_id":"","url":"https://api.github.com/users/JuniorSolutions","html_url":"https://github.com/JuniorSolutions","followers_url":"https://api.github.com/users/JuniorSolutions/followers","following_url":"https://api.github.com/users/JuniorSolutions/following{/other_user}","gists_url":"https://api.github.com/users/JuniorSolutions/gists{/gist_id}","starred_url":"https://api.github.com/users/JuniorSolutions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuniorSolutions/subscriptions","organizations_url":"https://api.github.com/users/JuniorSolutions/orgs","repos_url":"https://api.github.com/users/JuniorSolutions/repos","events_url":"https://api.github.com/users/JuniorSolutions/events{/privacy}","received_events_url":"https://api.github.com/users/JuniorSolutions/received_events","type":"User","site_admin":false},"labels":[{"id":932513183,"url":"https://api.github.com/repos/JuniorSolutions/bsa-2018-php-2/labels/enhancement","name":"enhancement","color":"a2eeef","default":true}],"state":"closed","locked":false,"assignee":{"login":"JuniorSolutions","id":23285640,"avatar_url":"https://avatars3.githubusercontent.com/u/23285640?v=4","gravatar_id":"","url":"https://api.github.com/users/JuniorSolutions","html_url":"https://github.com/JuniorSolutions","followers_url":"https://api.github.com/users/JuniorSolutions/followers","following_url":"https://api.github.com/users/JuniorSolutions/following{/other_user}","gists_url":"https://api.github.com/users/JuniorSolutions/gists{/gist_id}","starred_url":"https://api.github.com/users/JuniorSolutions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuniorSolutions/subscriptions","organizations_url":"https://api.github.com/users/JuniorSolutions/orgs","repos_url":"https://api.github.com/users/JuniorSolutions/repos","events_url":"https://api.github.com/users/JuniorSolutions/events{/privacy}","received_events_url":"https://api.github.com/users/JuniorSolutions/received_events","type":"User","site_admin":false},"assignees":[{"login":"JuniorSolutions","id":23285640,"avatar_url":"https://avatars3.githubusercontent.com/u/23285640?v=4","gravatar_id":"","url":"https://api.github.com/users/JuniorSolutions","html_url":"https://github.com/JuniorSolutions","followers_url":"https://api.github.com/users/JuniorSolutions/followers","following_url":"https://api.github.com/users/JuniorSolutions/following{/other_user}","gists_url":"https://api.github.com/users/JuniorSolutions/gists{/gist_id}","starred_url":"https://api.github.com/users/JuniorSolutions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuniorSolutions/subscriptions","organizations_url":"https://api.github.com/users/JuniorSolutions/orgs","repos_url":"https://api.github.com/users/JuniorSolutions/repos","events_url":"https://api.github.com/users/JuniorSolutions/events{/privacy}","received_events_url":"https://api.github.com/users/JuniorSolutions/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-05-14T12:06:20Z","updated_at":"2018-05-14T14:14:42Z","closed_at":"2018-05-14T14:14:42Z","author_association":"OWNER","body":"Створити класс “Fighter”. Клас повиненин приймати значення name, power і health. Також клас повинен мати методи “setDamage” та “hit”.\r\n\r\nМетод “setDamage” приймає значення “damage” і наносить урон змінюючи значення health (health = health - damage), і виводить в консоль строку “health: ”.\r\n\r\nМетод “hit” приймає значення “enemy”, “point”, і в середині викликає метод переданого обекту “enemy.setDamage(damage)”. “damage” вираховується наступним чином - damage = point * power, де point - змінний параметр, прийнятий в функцію \"fight\", power - це властивість об'єкту який наносить урон."}}
{"actor":{"display_login":"JuniorSolutions"}}