This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Como seria normalmente a criação de um objeto sem o construct. | |
Class Pessoa | |
{ | |
public function Nome(String $nome) :String | |
{ | |
return print $nome; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Como normalmente se faria, chamando um objeto | |
/* | |
* Class Carro | |
* | |
* @params String $modelo | |
* @return string |
NewerOlder