/** * @param Cell $cell * @param $value * @param ReferenceTable $table * * @return mixed */ public function parse(Cell $cell, $value, ReferenceTable &$table) { if ($value == 'italic') { $cell->font()->italic(); } elseif ($value == 'normal') { $cell->font()->italic(false); } }
/** * @param Cell $cell * @param $value * @param ReferenceTable $table * * @return mixed */ public function parse(Cell $cell, $value, ReferenceTable &$table) { if ($value == 'bold' || $value >= 500) { $cell->font()->bold(); } elseif ($value == 'normal' || $value < 500) { $cell->font()->bold(false); } }
/** * @param Cell $cell * @param $value * @param ReferenceTable $table * * @return mixed */ public function parse(Cell $cell, $value, ReferenceTable &$table) { switch ($value) { case 'underline': $cell->font()->underline(); case 'line-through': $cell->font()->strikethrough(); } }
/** * @param Cell $cell * @param $value * @param ReferenceTable $table * * @return mixed */ public function parse(Cell $cell, $value, ReferenceTable &$table) { $cell->font()->family($value); }