Skip to content
Permalink
Browse files

ID#323: corrected coding style of domain object generator.

  • Loading branch information...
Christian Achatz
Christian Achatz committed May 18, 2018
1 parent a664ffb commit ac725ea842364c093bee0fdd1a627861fc3f7b8e
@@ -237,7 +237,7 @@ protected function generateBaseObjectCode($name) {
$code .= ' protected $propertyNames = [' . self::EOL .
implode(',' . self::EOL, $properties) . self::EOL .
' ];' . self::EOL . self::EOL;
' ];' . self::EOL . self::EOL;
// add constructor
$code .= ' public function __construct(string $objectName = null) {' . self::EOL .
@@ -165,7 +165,7 @@ public function testGenerateBaseObjectCode() {
' \'ModificationTimestamp\',' . GenericORMapperDomainObjectGenerator::EOL .
' \'Name\',' . GenericORMapperDomainObjectGenerator::EOL .
' \'Value\'' . GenericORMapperDomainObjectGenerator::EOL .
' ];';
' ];';
$this->assertContains($propertyNamesCode, $code);
}

0 comments on commit ac725ea

Please sign in to comment.
You can’t perform that action at this time.