View Project Default.xml
<component name="InspectionProjectProfileManager"> | |
<profile version="1.0"> | |
<option name="myName" value="Project Default" /> | |
<inspection_tool class="PhpClassNamingConventionInspection" enabled="true" level="WARNING" enabled_by_default="true"> | |
<option name="m_regex" value="^_?[A-Z][A-Za-z\d]*" /> | |
<option name="m_minLength" value="3" /> | |
<option name="m_maxLength" value="50" /> | |
</inspection_tool> | |
<inspection_tool class="PhpConstantNamingConventionInspection" enabled="true" level="WARNING" enabled_by_default="true"> | |
<option name="m_minLength" value="2" /> |
View anonymous-class.php
<?php | |
class CoolDto | |
{ | |
public $master = 'admin'; | |
public $child; | |
public function __construct() | |
{ | |
$this->child = $this->createChildDto(); | |
} |
View Entity.php
<?php | |
namespace Core\Utils; | |
use Zend\Form\Annotation\AnnotationBuilder; | |
use DoctrineModule\Stdlib\Hydrator\DoctrineObject as DoctrineHydrator; | |
use Doctrine\ORM\EntityManager; | |
use Zend\Form\Form; | |
/** | |
* Inspired by |