public function getRoles($includeAbstract = false)
    {
        $this->initialize();
        if (!$includeAbstract) {
            return array_filter($this->roles, function (Role $role) {
                return $role->isAbstract() !== true;
            });
        }
        return $this->roles;
    }
public function getRoles($includeAbstract = false)
    {
        $this->initialize();
        if (!$includeAbstract) {
            return array_filter($this->roles, function (Role $role) {
                return $role->isAbstract() !== true;
            });
        }
        return $this->roles;
    }
public function getRoles ( $ includeAbstract = false ) { $ this -> initialize ( ) ; if ( ! $ includeAbstract ) { return array_filter ( $ this -> roles , function ( Role $ role ) { return $ role -> isAbstract ( ) !== true ; } ) ; } return $ this -> roles ; }
Returns an array of all configured roles

@param boolean $includeAbstract If true the result includes abstract roles, otherwise those will be skipped
@return Role[] Array of all configured roles, indexed by role identifier
Returns an array of all configured roles