Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Denis Buchatsky
Denis-Buchatsky
Commits
42078f31
Commit
42078f31
authored
4 years ago
by
Denis Buchatsky
Browse files
Options
Download
Email Patches
Plain Diff
Update oop2.php
parent
aa83a21d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
oop2.php
oop2.php
+14
-4
No files found.
oop2.php
View file @
42078f31
<?php
declare
(
strict_types
=
1
);
namespace
User
;;
/**
* Description of User
*
...
...
@@ -94,3 +90,17 @@ $this -> dbahoj = $dbahoj;
return
$this
->
dbpri
;
}
}
$user
=
new
dbUser
();
$user
->
setdbloi
(
"loi"
);
$user
->
setdbahoj
(
1175
);
echo
$user
->
getdbname
()
.
"<br>"
;
echo
$user
->
getdbage
()
.
"<br>"
;
echo
$user
->
getdbheight
()
.
"<br>"
;
echo
$user
->
getdbweight
()
.
"<br>"
;
echo
$user
->
getdbpri
()
.
"<br>"
;
var_dump
(
$user
);
?>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment