$subject
$subject : object
Abstract class representing the base elements of a phpDocumentor event.
$writer : \phpDocumentor\Transformer\Writer\WriterAbstract
setWriter(\phpDocumentor\Transformer\Writer\WriterAbstract $writer) : $this
Sets the currently parsed writer in this event.
\phpDocumentor\Transformer\Writer\WriterAbstract | $writer |
getWriter() : \phpDocumentor\Transformer\Writer\WriterAbstract
Returns the event that is currently being parsed.
<?php
/**
* phpDocumentor
*
* PHP Version 5.3
*
* @copyright 2010-2014 Mike van Riel / Naenius (http://www.naenius.com)
* @license http://www.opensource.org/licenses/mit-license.php MIT
* @link http://phpdoc.org
*/
namespace phpDocumentor\Transformer\Event;
use phpDocumentor\Event\EventAbstract;
use phpDocumentor\Transformer\Writer\WriterAbstract;
class WriterInitializationEvent extends EventAbstract
{
/** @var WriterAbstract */
protected $writer;
/**
* Sets the currently parsed writer in this event.
*
* @param WriterAbstract $writer
*
* @return $this
*/
public function setWriter($writer)
{
$this->writer = $writer;
return $this;
}
/**
* Returns the event that is currently being parsed.
*
* @return WriterAbstract
*/
public function getWriter()
{
return $this->writer;
}
}