Overview

Namespaces

  • Pharborist
    • Constants
    • ControlStructures
    • Exceptions
    • Functions
    • Generators
    • Namespaces
    • Objects
    • Operators
    • Types
    • Variables

Classes

  • ArrayLookupNode
  • BacktickNode
  • BlankStatementNode
  • CommaListNode
  • CommentNode
  • DocCommentNode
  • EchoStatementNode
  • EchoTagStatementNode
  • ExpressionStatementNode
  • Filter
  • Formatter
  • FormatterFactory
  • LineCommentBlockNode
  • Node
  • NodeCollection
  • OperatorFactory
  • ParenthesisNode
  • ParentNode
  • Parser
  • PartialCommentNode
  • PartialNode
  • RootNode
  • SourceDiscovery
  • SourcePosition
  • SplatNode
  • StatementBlockNode
  • StatementNode
  • TemplateNode
  • Token
  • TokenIterator
  • Tokenizer
  • TokenNode
  • UnsetStatementNode
  • VisitorBase
  • WhitespaceNode

Interfaces

  • ExpressionNode
  • NodeInterface
  • ParentNodeInterface
  • ParserException
  • VisitorInterface

Traits

  • DocCommentTrait
  • ParenTrait
  • UncommentTrait
  • Overview
  • Namespace
  • Class

Class FormatterFactory

Formatter factory.

Namespace: Pharborist
Located at FormatterFactory.php
Methods summary
public static Pharborist\Formatter
# getDefaultFormatter( )

Get the default formatter.

Get the default formatter.

The default formatter is used by node builders.

Returns

Pharborist\Formatter
public static
# setDefaultFormatter( Pharborist\Formatter $formatter )

Set the default formatter.

Set the default formatter.

Parameters

$formatter
public static Pharborist\Formatter
# createFormatter( string $filename )

Create formatter using the specified config file.

Create formatter using the specified config file.

Parameters

$filename

Returns

Pharborist\Formatter
public static
# getDrupalFormatter( )
public static
# getPsr2Formatter( )
public static
# format( Pharborist\Node $node )

Format a node using the default formatter.

Format a node using the default formatter.

Parameters

$node
Node to format.
Pharborist API documentation generated by ApiGen