{"action":"created","comment":{"url":"https://api.github.com/repos/Violetaaa/Ejercicios/pulls/comments/182349845","pull_request_review_id":113124771,"id":182349845,"diff_hunk":"@@ -0,0 +1,72 @@\n+<?php\n+class ListaClientes\n+    private $cliente;\n+    public function __construct($cliente)\n+    {\n+        $this->cliente = New Cliente;\n+    }\n+class Cliente\n+{\n+    private $nombre;\n+    private $dni;\n+    private $fechaNacimiento;\n+    private $activo;\n+    private $tarifa;\n+    public function __construct($nombre, $dni, $fechaNacimiento, $activo, $tarifa)\n+    {\n+        $this->nombre = $nombre;\n+        $this->dni = $dni;\n+        $this->fechaNacimiento = $fechaNacimiento;\n+        $this->activo = $activo;\n+        $this->tarifa = $tarifa;\n+    }\n+    public function pago (){\n+        $pago = new Pago();\n+    }\n+}\n+class Pago\n+{\n+    private $fecha;\n+    private $importe;\n+    private $tarifa;\n+    public function __construct($fecha, $importe, $tarifa)\n+    {\n+        $this->fecha = $fecha;\n+        $this->importe = $importe;\n+        $this->tarifa = $tarifa;\n+    }\n+\n+}\n+class Producto\n+{\n+    private $codigo;\n+    private $nombre;\n+    private $precio;\n+    public function __construct($codigo, $nombre, $precio)\n+    {\n+        $this->codigo = $codigo;\n+        $this->nombre = $nombre;\n+        $this->precio = $precio;\n+    }\n+}\n+class Venta\n+{\n+    private $producto;\n+    private $cliente;\n+    private $empleado;\n+    private $precio;\n+    private $motivo;\n+    public function __construct($producto, $cliente, $empleado, $precio, $motivo)","path":"clasesyobjetos.php","position":59,"original_position":59,"commit_id":"b6674290f3b81b2660b896d6a4dc2506b2b17531","original_commit_id":"b6674290f3b81b2660b896d6a4dc2506b2b17531","user":{"login":"jcuerdo","id":3788579,"avatar_url":"https://avatars0.githubusercontent.com/u/3788579?v=4","gravatar_id":"","url":"https://api.github.com/users/jcuerdo","html_url":"https://github.com/jcuerdo","followers_url":"https://api.github.com/users/jcuerdo/followers","following_url":"https://api.github.com/users/jcuerdo/following{/other_user}","gists_url":"https://api.github.com/users/jcuerdo/gists{/gist_id}","starred_url":"https://api.github.com/users/jcuerdo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcuerdo/subscriptions","organizations_url":"https://api.github.com/users/jcuerdo/orgs","repos_url":"https://api.github.com/users/jcuerdo/repos","events_url":"https://api.github.com/users/jcuerdo/events{/privacy}","received_events_url":"https://api.github.com/users/jcuerdo/received_events","type":"User","site_admin":false},"body":"Los tipos que no sean simples como Producto o Cliente especificales el tipo cuando defines el metodo: Producto $producto, Cliente $cliente, etc...","created_at":"2018-04-18T08:39:55Z","updated_at":"2018-04-18T08:41:49Z","html_url":"https://github.com/Violetaaa/Ejercicios/pull/4#discussion_r182349845","pull_request_url":"https://api.github.com/repos/Violetaaa/Ejercicios/pulls/4","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/Violetaaa/Ejercicios/pulls/comments/182349845"},"html":{"href":"https://github.com/Violetaaa/Ejercicios/pull/4#discussion_r182349845"},"pull_request":{"href":"https://api.github.com/repos/Violetaaa/Ejercicios/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/Violetaaa/Ejercicios/pulls/4","id":182251315,"html_url":"https://github.com/Violetaaa/Ejercicios/pull/4","diff_url":"https://github.com/Violetaaa/Ejercicios/pull/4.diff","patch_url":"https://github.com/Violetaaa/Ejercicios/pull/4.patch","issue_url":"https://api.github.com/repos/Violetaaa/Ejercicios/issues/4","number":4,"state":"open","locked":false,"title":"Ejercicio clases objetos","user":{"login":"Violetaaa","id":38087923,"avatar_url":"https://avatars0.githubusercontent.com/u/38087923?v=4","gravatar_id":"","url":"https://api.github.com/users/Violetaaa","html_url":"https://github.com/Violetaaa","followers_url":"https://api.github.com/users/Violetaaa/followers","following_url":"https://api.github.com/users/Violetaaa/following{/other_user}","gists_url":"https://api.github.com/users/Violetaaa/gists{/gist_id}","starred_url":"https://api.github.com/users/Violetaaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Violetaaa/subscriptions","organizations_url":"https://api.github.com/users/Violetaaa/orgs","repos_url":"https://api.github.com/users/Violetaaa/repos","events_url":"https://api.github.com/users/Violetaaa/events{/privacy}","received_events_url":"https://api.github.com/users/Violetaaa/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-04-17T18:13:21Z","updated_at":"2018-04-18T08:41:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ad684a68f3fb9d8303858921eda95fed1cb82a09","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Violetaaa/Ejercicios/pulls/4/commits","review_comments_url":"https://api.github.com/repos/Violetaaa/Ejercicios/pulls/4/comments","review_comment_url":"https://api.github.com/repos/Violetaaa/Ejercicios/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Violetaaa/Ejercicios/issues/4/comments","statuses_url":"https://api.github.com/repos/Violetaaa/Ejercicios/statuses/b6674290f3b81b2660b896d6a4dc2506b2b17531","head":{"label":"Violetaaa:ejercicioClasesObjetos","ref":"ejercicioClasesObjetos","sha":"b6674290f3b81b2660b896d6a4dc2506b2b17531","user":{"login":"Violetaaa","id":38087923,"avatar_url":"https://avatars0.githubusercontent.com/u/38087923?v=4","gravatar_id":"","url":"https://api.github.com/users/Violetaaa","html_url":"https://github.com/Violetaaa","followers_url":"https://api.github.com/users/Violetaaa/followers","following_url":"https://api.github.com/users/Violetaaa/following{/other_user}","gists_url":"https://api.github.com/users/Violetaaa/gists{/gist_id}","starred_url":"https://api.github.com/users/Violetaaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Violetaaa/subscriptions","organizations_url":"https://api.github.com/users/Violetaaa/orgs","repos_url":"https://api.github.com/users/Violetaaa/repos","events_url":"https://api.github.com/users/Violetaaa/events{/privacy}","received_events_url":"https://api.github.com/users/Violetaaa/received_events","type":"User","site_admin":false},"repo":{"id":128976917,"name":"Ejercicios","full_name":"Violetaaa/Ejercicios","owner":{"login":"Violetaaa","id":38087923,"avatar_url":"https://avatars0.githubusercontent.com/u/38087923?v=4","gravatar_id":"","url":"https://api.github.com/users/Violetaaa","html_url":"https://github.com/Violetaaa","followers_url":"https://api.github.com/users/Violetaaa/followers","following_url":"https://api.github.com/users/Violetaaa/following{/other_user}","gists_url":"https://api.github.com/users/Violetaaa/gists{/gist_id}","starred_url":"https://api.github.com/users/Violetaaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Violetaaa/subscriptions","organizations_url":"https://api.github.com/users/Violetaaa/orgs","repos_url":"https://api.github.com/users/Violetaaa/repos","events_url":"https://api.github.com/users/Violetaaa/events{/privacy}","received_events_url":"https://api.github.com/users/Violetaaa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Violetaaa/Ejercicios","description":null,"fork":false,"url":"https://api.github.com/repos/Violetaaa/Ejercicios","forks_url":"https://api.github.com/repos/Violetaaa/Ejercicios/forks","keys_url":"https://api.github.com/repos/Violetaaa/Ejercicios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Violetaaa/Ejercicios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Violetaaa/Ejercicios/teams","hooks_url":"https://api.github.com/repos/Violetaaa/Ejercicios/hooks","issue_events_url":"https://api.github.com/repos/Violetaaa/Ejercicios/issues/events{/number}","events_url":"https://api.github.com/repos/Violetaaa/Ejercicios/events","assignees_url":"https://api.github.com/repos/Violetaaa/Ejercicios/assignees{/user}","branches_url":"https://api.github.com/repos/Violetaaa/Ejercicios/branches{/branch}","tags_url":"https://api.github.com/repos/Violetaaa/Ejercicios/tags","blobs_url":"https://api.github.com/repos/Violetaaa/Ejercicios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Violetaaa/Ejercicios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Violetaaa/Ejercicios/git/refs{/sha}","trees_url":"https://api.github.com/repos/Violetaaa/Ejercicios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Violetaaa/Ejercicios/statuses/{sha}","languages_url":"https://api.github.com/repos/Violetaaa/Ejercicios/languages","stargazers_url":"https://api.github.com/repos/Violetaaa/Ejercicios/stargazers","contributors_url":"https://api.github.com/repos/Violetaaa/Ejercicios/contributors","subscribers_url":"https://api.github.com/repos/Violetaaa/Ejercicios/subscribers","subscription_url":"https://api.github.com/repos/Violetaaa/Ejercicios/subscription","commits_url":"https://api.github.com/repos/Violetaaa/Ejercicios/commits{/sha}","git_commits_url":"https://api.github.com/repos/Violetaaa/Ejercicios/git/commits{/sha}","comments_url":"https://api.github.com/repos/Violetaaa/Ejercicios/comments{/number}","issue_comment_url":"https://api.github.com/repos/Violetaaa/Ejercicios/issues/comments{/number}","contents_url":"https://api.github.com/repos/Violetaaa/Ejercicios/contents/{+path}","compare_url":"https://api.github.com/repos/Violetaaa/Ejercicios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Violetaaa/Ejercicios/merges","archive_url":"https://api.github.com/repos/Violetaaa/Ejercicios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Violetaaa/Ejercicios/downloads","issues_url":"https://api.github.com/repos/Violetaaa/Ejercicios/issues{/number}","pulls_url":"https://api.github.com/repos/Violetaaa/Ejercicios/pulls{/number}","milestones_url":"https://api.github.com/repos/Violetaaa/Ejercicios/milestones{/number}","notifications_url":"https://api.github.com/repos/Violetaaa/Ejercicios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Violetaaa/Ejercicios/labels{/name}","releases_url":"https://api.github.com/repos/Violetaaa/Ejercicios/releases{/id}","deployments_url":"https://api.github.com/repos/Violetaaa/Ejercicios/deployments","created_at":"2018-04-10T18:16:49Z","updated_at":"2018-04-10T18:23:36Z","pushed_at":"2018-04-17T18:22:28Z","git_url":"git://github.com/Violetaaa/Ejercicios.git","ssh_url":"git@github.com:Violetaaa/Ejercicios.git","clone_url":"https://github.com/Violetaaa/Ejercicios.git","svn_url":"https://github.com/Violetaaa/Ejercicios","homepage":null,"size":4,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"Ejercicio2"}},"base":{"label":"Violetaaa:comparar","ref":"comparar","sha":"4510ddb9751071c60df9705ec6fdc477eaa337b6","user":{"login":"Violetaaa","id":38087923,"avatar_url":"https://avatars0.githubusercontent.com/u/38087923?v=4","gravatar_id":"","url":"https://api.github.com/users/Violetaaa","html_url":"https://github.com/Violetaaa","followers_url":"https://api.github.com/users/Violetaaa/followers","following_url":"https://api.github.com/users/Violetaaa/following{/other_user}","gists_url":"https://api.github.com/users/Violetaaa/gists{/gist_id}","starred_url":"https://api.github.com/users/Violetaaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Violetaaa/subscriptions","organizations_url":"https://api.github.com/users/Violetaaa/orgs","repos_url":"https://api.github.com/users/Violetaaa/repos","events_url":"https://api.github.com/users/Violetaaa/events{/privacy}","received_events_url":"https://api.github.com/users/Violetaaa/received_events","type":"User","site_admin":false},"repo":{"id":128976917,"name":"Ejercicios","full_name":"Violetaaa/Ejercicios","owner":{"login":"Violetaaa","id":38087923,"avatar_url":"https://avatars0.githubusercontent.com/u/38087923?v=4","gravatar_id":"","url":"https://api.github.com/users/Violetaaa","html_url":"https://github.com/Violetaaa","followers_url":"https://api.github.com/users/Violetaaa/followers","following_url":"https://api.github.com/users/Violetaaa/following{/other_user}","gists_url":"https://api.github.com/users/Violetaaa/gists{/gist_id}","starred_url":"https://api.github.com/users/Violetaaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Violetaaa/subscriptions","organizations_url":"https://api.github.com/users/Violetaaa/orgs","repos_url":"https://api.github.com/users/Violetaaa/repos","events_url":"https://api.github.com/users/Violetaaa/events{/privacy}","received_events_url":"https://api.github.com/users/Violetaaa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Violetaaa/Ejercicios","description":null,"fork":false,"url":"https://api.github.com/repos/Violetaaa/Ejercicios","forks_url":"https://api.github.com/repos/Violetaaa/Ejercicios/forks","keys_url":"https://api.github.com/repos/Violetaaa/Ejercicios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Violetaaa/Ejercicios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Violetaaa/Ejercicios/teams","hooks_url":"https://api.github.com/repos/Violetaaa/Ejercicios/hooks","issue_events_url":"https://api.github.com/repos/Violetaaa/Ejercicios/issues/events{/number}","events_url":"https://api.github.com/repos/Violetaaa/Ejercicios/events","assignees_url":"https://api.github.com/repos/Violetaaa/Ejercicios/assignees{/user}","branches_url":"https://api.github.com/repos/Violetaaa/Ejercicios/branches{/branch}","tags_url":"https://api.github.com/repos/Violetaaa/Ejercicios/tags","blobs_url":"https://api.github.com/repos/Violetaaa/Ejercicios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Violetaaa/Ejercicios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Violetaaa/Ejercicios/git/refs{/sha}","trees_url":"https://api.github.com/repos/Violetaaa/Ejercicios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Violetaaa/Ejercicios/statuses/{sha}","languages_url":"https://api.github.com/repos/Violetaaa/Ejercicios/languages","stargazers_url":"https://api.github.com/repos/Violetaaa/Ejercicios/stargazers","contributors_url":"https://api.github.com/repos/Violetaaa/Ejercicios/contributors","subscribers_url":"https://api.github.com/repos/Violetaaa/Ejercicios/subscribers","subscription_url":"https://api.github.com/repos/Violetaaa/Ejercicios/subscription","commits_url":"https://api.github.com/repos/Violetaaa/Ejercicios/commits{/sha}","git_commits_url":"https://api.github.com/repos/Violetaaa/Ejercicios/git/commits{/sha}","comments_url":"https://api.github.com/repos/Violetaaa/Ejercicios/comments{/number}","issue_comment_url":"https://api.github.com/repos/Violetaaa/Ejercicios/issues/comments{/number}","contents_url":"https://api.github.com/repos/Violetaaa/Ejercicios/contents/{+path}","compare_url":"https://api.github.com/repos/Violetaaa/Ejercicios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Violetaaa/Ejercicios/merges","archive_url":"https://api.github.com/repos/Violetaaa/Ejercicios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Violetaaa/Ejercicios/downloads","issues_url":"https://api.github.com/repos/Violetaaa/Ejercicios/issues{/number}","pulls_url":"https://api.github.com/repos/Violetaaa/Ejercicios/pulls{/number}","milestones_url":"https://api.github.com/repos/Violetaaa/Ejercicios/milestones{/number}","notifications_url":"https://api.github.com/repos/Violetaaa/Ejercicios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Violetaaa/Ejercicios/labels{/name}","releases_url":"https://api.github.com/repos/Violetaaa/Ejercicios/releases{/id}","deployments_url":"https://api.github.com/repos/Violetaaa/Ejercicios/deployments","created_at":"2018-04-10T18:16:49Z","updated_at":"2018-04-10T18:23:36Z","pushed_at":"2018-04-17T18:22:28Z","git_url":"git://github.com/Violetaaa/Ejercicios.git","ssh_url":"git@github.com:Violetaaa/Ejercicios.git","clone_url":"https://github.com/Violetaaa/Ejercicios.git","svn_url":"https://github.com/Violetaaa/Ejercicios","homepage":null,"size":4,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"Ejercicio2"}},"_links":{"self":{"href":"https://api.github.com/repos/Violetaaa/Ejercicios/pulls/4"},"html":{"href":"https://github.com/Violetaaa/Ejercicios/pull/4"},"issue":{"href":"https://api.github.com/repos/Violetaaa/Ejercicios/issues/4"},"comments":{"href":"https://api.github.com/repos/Violetaaa/Ejercicios/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/Violetaaa/Ejercicios/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/Violetaaa/Ejercicios/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Violetaaa/Ejercicios/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/Violetaaa/Ejercicios/statuses/b6674290f3b81b2660b896d6a4dc2506b2b17531"}},"author_association":"OWNER"}}
{"actor":{"display_login":"jcuerdo"}}