From 1419ba8cdcf18dd034c8db9f7de86a2594b68605 Mon Sep 17 00:00:00 2001 From: Phil Sturgeon Date: Wed, 4 Dec 2013 17:23:19 -0500 Subject: [PATCH] Added GrantTrait::setIdentifier I found it useful to be able to set the identifier so I could "alias" one for deprecation. Hopefully no issues here @alexbilbie --- src/League/OAuth2/Server/Grant/GrantTrait.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/League/OAuth2/Server/Grant/GrantTrait.php b/src/League/OAuth2/Server/Grant/GrantTrait.php index e052ce57..f444fa50 100644 --- a/src/League/OAuth2/Server/Grant/GrantTrait.php +++ b/src/League/OAuth2/Server/Grant/GrantTrait.php @@ -22,6 +22,17 @@ trait GrantTrait { return $this->identifier; } + /** + * Return the identifier + * @param string $identifier + * @return self + */ + public function setIdentifier($identifier) + { + $this->identifier = $identifier; + return $this; + } + /** * Return the response type * @return string @@ -42,4 +53,4 @@ trait GrantTrait { return $this; } -} \ No newline at end of file +}