Can create groups

This commit is contained in:
Pierre HUBERT
2018-07-02 12:03:33 +02:00
parent 1637885a97
commit 30d6a1fd9d
5 changed files with 202 additions and 0 deletions

View File

@ -0,0 +1,25 @@
<?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";
}
}