fkooman\OAuth\Client\State::getState PHP Method

getState() public method

public getState ( )
    public function getState()
    {
        return $this->state;
    }

Usage Example

Example #1
0
 public function deleteState(State $state)
 {
     $stmt = $this->db->prepare("DELETE FROM states WHERE client_config_id = :client_config_id AND state = :state");
     $stmt->bindValue(":client_config_id", $state->getClientConfigId(), PDO::PARAM_STR);
     $stmt->bindValue(":state", $state->getState(), PDO::PARAM_STR);
     $stmt->execute();
     return 1 === $stmt->rowCount();
 }
All Usage Examples Of fkooman\OAuth\Client\State::getState