Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (24 sloc) 532 Bytes
<?php
/**
* Class RedFinchLogger_TypeRegion
*
* @author James Wigger <james.s.wigger@gmail.com>
*/
class RedFinchLogger_TypeRegion extends RedFinchLogger_TypeBase
{
/**
* Returns an array from the subject mapped to the common type properties
*
* @param $subject
*
* @return array
*/
protected function map($subject)
{
return [
'id' => $subject->id(),
'title' => $subject->regionKey(),
'content' => $subject->regionHTML()
];
}
}