mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
added name method alias of nombre to Group class
This commit is contained in:
parent
1f7a68cacc
commit
32d09a2353
@ -105,6 +105,23 @@ class Group extends Entity
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Alias of 'nombre'.
|
||||
*
|
||||
* @param string|null $name Name of group.
|
||||
*
|
||||
* @return string|void Name assigned or void if set operation.
|
||||
*/
|
||||
public function name(?string $name=null)
|
||||
{
|
||||
if ($name === null) {
|
||||
return $this->nombre();
|
||||
}
|
||||
|
||||
return $this->nombre($name);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Retrieves a list of groups fitered.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user