| 1 | <?php |
||
| 22 | class QuoteTwigExtension extends AbstractTwigExtension { |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Service name. |
||
| 26 | * |
||
| 27 | * @var string |
||
| 28 | */ |
||
| 29 | const SERVICE_NAME = "webeweb.core.twig.extension.quote"; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Get the Twig functions. |
||
| 33 | * |
||
| 34 | * @return TwigFunction[] Returns the Twig functions. |
||
| 35 | */ |
||
| 36 | public function getFunctions() { |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Displays a quote author. |
||
| 45 | * |
||
| 46 | * @param array $args The arguments. |
||
| 47 | * @return string Returns the quote author. |
||
| 48 | */ |
||
| 49 | public function quoteAuthorFunction(array $args = []) { |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Displays a quote content. |
||
| 55 | * |
||
| 56 | * @param array $args The arguments. |
||
| 57 | * @return string Returns the quote content. |
||
| 58 | */ |
||
| 59 | public function quoteContentFunction(array $args = []) { |
||
| 62 | } |
||
| 63 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.