Webiny\Component\Entity\EntityAttributeBuilder::attr PHP Méthode

attr() public méthode

Create a new attribute
public attr ( $attribute )
$attribute
    public function attr($attribute)
    {
        $this->attribute = $attribute;
        return $this;
    }

Usage Example

Exemple #1
0
 /**
  * @param $attribute
  *
  * @return EntityAttributeBuilder
  */
 public function attr($attribute)
 {
     return $this->attributeBuilder->attr($attribute);
 }