Adds attribute based on its original name
public addAttribute ( string $attributeName, string $attributeType ) : |
||
$attributeName | string | the attribute name |
$attributeType | string | the attribute type |
return |
/** * @expectedException \InvalidArgumentException */ public function testSetModelBasNameOneAttributeWithException() { $struct = new StructModel(self::bingGeneratorInstance(), 'Foo'); $struct->addAttribute('bar', 'string'); $array = new ArrayFile(self::bingGeneratorInstance(), 'Foo'); $array->setModel($struct); }