public function checkRestrictedGrantType($client_id, $grant_type)
	{
		$client = $this->repo->find($client_id);

		if(!$client) {
			return false;
		}

		$restrictedTypes = $client->getRestrictedGrantTypes();

		// Null restricted type assuemd to be true.
		if(is_null($restrictedTypes)) {
			return true;
		}


		return in_array($grant_type, $restrictedTypes);
	}
public function checkRestrictedGrantType($client_id, $grant_type)
	{
		$client = $this->repo->find($client_id);

		if(!$client) {
			return false;
		}

		$restrictedTypes = $client->getRestrictedGrantTypes();

		// Null restricted type assuemd to be true.
		if(is_null($restrictedTypes)) {
			return true;
		}


		return in_array($grant_type, $restrictedTypes);
	}
public function checkRestrictedGrantType ( $ client_id , $ grant_type ) { $ client = $ this -> repo -> find ( $ client_id ) ; if ( ! $ client ) { return false ; } $ restrictedTypes = $ client -> getRestrictedGrantTypes ( ) ; // Null restricted type assuemd to be true. if ( is_null ( $ restrictedTypes ) ) { return true ; } return in_array ( $ grant_type , $ restrictedTypes ) ; }
Checks if grant tpye is restricted.

@param $client_id
@param $grant_type
@return bool
Checks if grant tpye is restricted .