remove whitespace
tabs -> spaces added class constants updated phpdoc
This commit is contained in:
parent
facd64ef2f
commit
f26d43b3ea
@ -47,6 +47,15 @@ use Doctrine\ORM\Mapping\ClassMetadataInfo,
|
||||
*/
|
||||
class EntityGenerator
|
||||
{
|
||||
/**
|
||||
* Specifies class fields should be protected
|
||||
*/
|
||||
const FIELD_VISIBLE_PROTECTED = 'protected';
|
||||
/**
|
||||
* Specifies class fields should be private
|
||||
*/
|
||||
const FIELD_VISIBLE_PRIVATE = 'private';
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
@ -300,7 +309,7 @@ public function <methodName>()
|
||||
}
|
||||
|
||||
/**
|
||||
* Set whether or not to generate annotations for the entity
|
||||
* Set the class fields visibility for the entity (can either be private or protected)
|
||||
*
|
||||
* @param bool $bool
|
||||
* @return void
|
||||
|
@ -26,7 +26,7 @@ class EntityGeneratorTest extends \Doctrine\Tests\OrmTestCase
|
||||
$this->_generator->setGenerateStubMethods(true);
|
||||
$this->_generator->setRegenerateEntityIfExists(false);
|
||||
$this->_generator->setUpdateEntityIfExists(true);
|
||||
$this->_generator->setFieldVisibility('protected');
|
||||
$this->_generator->setFieldVisibility(EntityGenerator::FIELD_VISIBLE_PROTECTED);
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
|
Loading…
x
Reference in New Issue
Block a user