Code: Select all
public function setRequired($field)
{
$this -> _required[] = $field;
}Code: Select all
/**
* Enter description here...
*
* @param unknown_type $something
*/Code: Select all
/**
* Enter description here...
*
* @param string $something
*/
private function setSomething(string $something)
{
$this -> _something = $something;
}I don't think I have ever seen a piece of PHP code that defines the data types; why is this?