<?php namespace Lc\CaracoleBundle\Solver\Section; use Lc\CaracoleBundle\Model\Section\SectionInterface; use Lc\CaracoleBundle\Model\Section\SectionModel; class SectionSolver { public function getHtmlClass(?SectionInterface $section): string { $htmlClass = 'section-'; $htmlClass .= $section ? $section->getDevAlias() : 'all'; return $htmlClass; } }