ComunicAPI/classes/models/NewGroup.php
2018-07-02 12:03:33 +02:00

25 lines
439 B
PHP

<?php
/**
* New Group Object
*
* @author Pierre HUBERT
*/
class NewGroup extends BaseUniqueObjectFromUser {
//Private properties
private $name;
//Set and get name
public function set_name(string $name){
$this->name = $name == "" ? null : $name;
}
public function has_name() : bool {
return $this->name != null;
}
public function get_name() : string {
return $this->name != null ? $this->name : "null";
}
}