mirror of
https://github.com/pierre42100/ComunicAPI
synced 2024-11-23 13:59:29 +00:00
Fix GroupInfo model
This commit is contained in:
parent
c014dbdd48
commit
8e0eba4385
@ -131,15 +131,15 @@ class GroupInfo extends BaseUniqueObject {
|
||||
}
|
||||
|
||||
//Get and set virtual directory
|
||||
public function set_virtual_directory(int $virtual_directory){
|
||||
$this->virtual_directory = $virtual_directory;
|
||||
public function set_virtual_directory(string $virtual_directory){
|
||||
$this->virtual_directory = $virtual_directory == "" ? null : $virtual_directory;
|
||||
}
|
||||
|
||||
public function has_virtual_directory() : bool {
|
||||
return $this->virtual_directory > -1;
|
||||
return $this->virtual_directory != null;
|
||||
}
|
||||
|
||||
public function get_virtual_directory() : int {
|
||||
return $this->virtual_directory;
|
||||
public function get_virtual_directory() : string {
|
||||
return $this->virtual_directory != null ? $this->virtual_directory : "null";
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user