name; } /** * @inheritdoc */ public function setName($name) { $this->name = $name; } /** * @inheritdoc */ public function canKeepASecret() { return $this->secret === null; } /** * @inheritdoc */ public function setSecret($secret) { $this->secret = $secret; } /** * @inheritdoc */ public function validateSecret($submittedSecret) { return strcmp((string) $submittedSecret, $this->secret) === 0; } /** * @inheritdoc */ public function setRedirectUri($redirectUri) { $this->redirectUri = $redirectUri; } /** * @inheritdoc */ public function getRedirectUri() { return $this->redirectUri; } }