Skip to content

Commit

Permalink
Add method AttributeNode::label().
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Mar 7, 2020
1 parent 4ffc86e commit 46724eb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Node/AttributeNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ public function getAttributes(): array
return $this->attributes;
}

/**
* {@inheritdoc}
*/
public function label(): string
{
return (string) $this->getAttribute('label');
}

/**
* {@inheritdoc}
*/
Expand Down

0 comments on commit 46724eb

Please sign in to comment.