Gitlab\Api\Groups::all PHP Method

all() public method

public all ( integer $page = 1, integer $per_page = self::PER_PAGE ) : mixed
$page integer
$per_page integer
return mixed
    public function all($page = 1, $per_page = self::PER_PAGE)
    {
        return $this->get('groups', array('page' => $page, 'per_page' => $per_page));
    }

Usage Example

 /**
  * Check if group exist
  */
 public function checkGroupName()
 {
     $groups = new Groups($this->client);
     return $this->arraySearchValues($this->config['gitlab']['group-name'], $groups->all(), 'path', 'id', $this->idgroup);
 }