Skip to content
This repository has been archived by the owner on May 27, 2021. It is now read-only.

Latest commit

 

History

History
45 lines (36 loc) · 1.41 KB

php.md

File metadata and controls

45 lines (36 loc) · 1.41 KB

PHP / Symofny2 Stuff

Code Style

Relationships

DocBlock / Annotations

Exceptions

  • Symonfy2 custom annotations are after the description / long description and before @params
  • Symfony2 custom annotations are split with a line break and boundaried by blank lines
/**
 * Description
 *
 * Longer description
 *
 * @View(...)
 * @Route(...)
 *
 * @param string $dummy Some argument description
 * @param array  $options
 *
 * @return string|null Transformed input
 *
 * @throws \RuntimeException
 */