\Dewdrop\Admin\PageFactoryPage

This class is a simple value object for pages returned from PageFactoryInterface->listAllPages() methods to ensure they are consistently handled in the various factories.

Summary

Methods
Properties
Constants
__construct()
getName()
getFile()
getClassName()
getDocBlock()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$name
$file
$className
N/A

Properties

$name

$name : string

The name of the page in URL routes.

Type

string

$file

$file : string

The file where the page class is defined.

Type

string

$className

$className : string

The name of the page class.

Type

string

Methods

__construct()

__construct(string  $name, string  $file, string  $className) 

Provide information about the page provided by the factory.

Parameters

string $name
string $file
string $className

getName()

getName() : string

Get the name of the page used to route to it in the URL.

Returns

string

getFile()

getFile() : string

Get the name of the file where the page is defined.

Returns

string

getClassName()

getClassName() : string

Get the name of the class the page is defined in.

Returns

string

getDocBlock()

getDocBlock() : string

Use reflection to grab the docblock off the page class and trim out the various comment formatting noise.

Returns

string