Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
php-client
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Perun
Perun ProxyIdP
php-client
Commits
bdf82528
Commit
bdf82528
authored
1 year ago
by
lukasmatusiewicz
Browse files
Options
Downloads
Patches
Plain Diff
Update PIResponse.php
make the fields private add getters
parent
5d1ba092
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/PIResponse.php
+111
-13
111 additions, 13 deletions
src/PIResponse.php
with
111 additions
and
13 deletions
src/PIResponse.php
+
111
−
13
View file @
bdf82528
...
@@ -17,40 +17,40 @@
...
@@ -17,40 +17,40 @@
class
PIResponse
class
PIResponse
{
{
/* @var string Combined messages of all triggered token. */
/* @var string Combined messages of all triggered token. */
p
ublic
string
$messages
=
""
;
p
rivate
string
$messages
=
""
;
/* @var string Message from the response. Should be shown to the user. */
/* @var string Message from the response. Should be shown to the user. */
p
ublic
string
$message
=
""
;
p
rivate
string
$message
=
""
;
/* @var string Transaction ID is used to reference the challenges contained in this response in later requests. */
/* @var string Transaction ID is used to reference the challenges contained in this response in later requests. */
p
ublic
string
$transactionID
=
""
;
p
rivate
string
$transactionID
=
""
;
/* @var string Preferred mode in which client should work after triggering challenges. */
/* @var string Preferred mode in which client should work after triggering challenges. */
p
ublic
string
$preferredClientMode
=
""
;
p
rivate
string
$preferredClientMode
=
""
;
/* @var string Raw response in JSON format. */
/* @var string Raw response in JSON format. */
p
ublic
string
$raw
=
""
;
p
rivate
string
$raw
=
""
;
/* @var array Array of PIChallenge objects representing the triggered token challenges. */
/* @var array Array of PIChallenge objects representing the triggered token challenges. */
p
ublic
array
$multiChallenge
=
array
();
p
rivate
array
$multiChallenge
=
array
();
/* @var bool Status indicates if the request was processed successfully by the server. */
/* @var bool Status indicates if the request was processed successfully by the server. */
p
ublic
bool
$status
=
false
;
p
rivate
bool
$status
=
false
;
/* @var bool Value is true if the authentication was successful. */
/* @var bool Value is true if the authentication was successful. */
p
ublic
bool
$value
=
false
;
p
rivate
bool
$value
=
false
;
/* @var string Authentication Status. */
/* @var string Authentication Status. */
p
ublic
string
$authenticationStatus
=
""
;
p
rivate
string
$authenticationStatus
=
""
;
/* @var array Additional attributes of the user that can be sent by the server. */
/* @var array Additional attributes of the user that can be sent by the server. */
p
ublic
array
$detailAndAttributes
=
array
();
p
rivate
array
$detailAndAttributes
=
array
();
/* @var string If an error occurred, the error code will be set here. */
/* @var string If an error occurred, the error code will be set here. */
p
ublic
string
$errorCode
;
p
rivate
string
$errorCode
;
/* @var string If an error occurred, the error message will be set here. */
/* @var string If an error occurred, the error message will be set here. */
p
ublic
string
$errorMessage
;
p
rivate
string
$errorMessage
;
/**
/**
* Create a PIResponse object from the JSON response of the server.
* Create a PIResponse object from the JSON response of the server.
...
@@ -322,4 +322,102 @@ class PIResponse
...
@@ -322,4 +322,102 @@ class PIResponse
}
}
return
""
;
return
""
;
}
}
}
// Getters
/**
* @return string Combined messages of all triggered token.
*/
public
function
getMessages
():
string
{
return
$this
->
messages
;
}
/**
* @return string Message from the response. Should be shown to the user.
*/
public
function
getMessage
():
string
{
return
$this
->
message
;
}
/**
* @return string Transaction ID is used to reference the challenges contained in this response in later requests.
*/
public
function
getTransactionID
():
string
{
return
$this
->
transactionID
;
}
/**
* @return string Preferred mode in which client should work after triggering challenges.
*/
public
function
getPreferredClientMode
():
string
{
return
$this
->
preferredClientMode
;
}
/**
* @return string Raw response in JSON format.
*/
public
function
getRawResponse
():
string
{
return
$this
->
raw
;
}
/**
* @return array Array of PIChallenge objects representing the triggered token challenges.
*/
public
function
getMultiChallenge
():
array
{
return
$this
->
multiChallenge
;
}
/**
* @return bool Status indicates if the request was processed successfully by the server.
*/
public
function
getStatus
():
bool
{
return
$this
->
status
;
}
/**
* @return bool Value is true if the authentication was successful.
*/
public
function
getValue
():
bool
{
return
$this
->
value
;
}
/**
* @return string Authentication Status.
*/
public
function
getAuthenticationStatus
():
string
{
return
$this
->
authenticationStatus
;
}
/**
* @return array Additional attributes of the user that can be sent by the server.
*/
public
function
getDetailAndAttributes
():
array
{
return
$this
->
detailAndAttributes
;
}
/**
* @return string If an error occurred, the error code will be set here.
*/
public
function
getErrorCode
():
string
{
return
$this
->
errorCode
;
}
/**
* @return string If an error occurred, the error message will be set here.
*/
public
function
getErrorMessage
():
string
{
return
$this
->
errorMessage
;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment