addMeta() public method

Add meta information to the operation
public addMeta ( string $metaName, mixed $metaValue ) : AbstractModel
$metaName string
$metaValue mixed
return AbstractModel
コード例 #1
0
 /**
  * Enumeration does not need its own value as meta information, it's like the name for struct attribute
  * @param AttributeHandler $tagAttribute
  * @param AbstractModel $model
  */
 protected function parseTagAttributeValue(AttributeHandler $tagAttribute, AbstractModel $model)
 {
     if (!$model instanceof StructValue) {
         $model->addMeta($tagAttribute->getName(), $tagAttribute->getValue(true));
     }
 }