AbstractProtectedRoutable
in package
implements RequestProcessorInterface

AbstractYes

Represents a target object for a request route that requires authorization.

Objects that extend this class will have access to metadata associated with the authenticated user. Route target objects that require authorization should extend this class.

Tags
phan-file-suppress

PhanWriteOnlyPublicProperty

Table of Contents

Interfaces

RequestProcessorInterface

Properties

$user  : User
Contains credentials for an authenticated user

Methods

withUser()  : self
Create a `User` from the given user object and assign it to the user property.

Properties

Methods

withUser()

Create a `User` from the given user object and assign it to the user property.

public withUser(object $user) : self
Parameters
$user : object
Return values
self

        
On this page

Search results