public function attributeLabels()
    {
        if (isset(static::$attributeLabelsList[static::class]) === false) {
            static::$attributeLabelsList[static::class] = isset($this->attributeLabels) === true
                ? $this->attributeLabels
                : [];
            foreach (static::getTraits() as $name) {
                if (null !== $attributeLabels = $this->callTraitMethod($name, 'AttributeLabels')) {
                    static::$attributeLabelsList[static::class] = ArrayHelper::merge(
                        static::$attributeLabelsList[static::class],
                        $attributeLabels
                    );
                }
            }
        }
        return static::$attributeLabelsList[static::class];
    }
public function attributeLabels()
    {
        if (isset(static::$attributeLabelsList[static::class]) === false) {
            static::$attributeLabelsList[static::class] = isset($this->attributeLabels) === true
                ? $this->attributeLabels
                : [];
            foreach (static::getTraits() as $name) {
                if (null !== $attributeLabels = $this->callTraitMethod($name, 'AttributeLabels')) {
                    static::$attributeLabelsList[static::class] = ArrayHelper::merge(
                        static::$attributeLabelsList[static::class],
                        $attributeLabels
                    );
                }
            }
        }
        return static::$attributeLabelsList[static::class];
    }
public function attributeLabels ( ) { if ( isset ( static :: $ attributeLabelsList [ static :: class ] ) === false ) { static :: $ attributeLabelsList [ static :: class ] = isset ( $ this -> attributeLabels ) === true ? $ this -> attributeLabels : [ ] ; foreach ( static :: getTraits ( ) as $ name ) { if ( null !== $ attributeLabels = $ this -> callTraitMethod ( $ name , 'AttributeLabels' ) ) { static :: $ attributeLabelsList [ static :: class ] = ArrayHelper :: merge ( static :: $ attributeLabelsList [ static :: class ] , $ attributeLabels ) ; } } } return static :: $ attributeLabelsList [ static :: class ] ; }
Get all attribute labels.
This method merges a model attributeLabels with attribute labels of all used traits.
@return array
Get all attribute labels . This method merges a model attributeLabels with attribute labels of all used traits .