ComunicAPI/classes/models/NewGroup.php

25 lines
439 B
PHP
Raw Normal View History

2018-07-02 10:03:33 +00:00
<?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";
}
}