phug-php/phug

View on GitHub
src/Phug/Util/Util/Partial/AttributesOrderTrait.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Phug\Util\Partial;

trait AttributesOrderTrait
{
    /**
     * @var int
     */
    protected $attributeIndex = 0;

    /**
     * @return int
     */
    public function getNextAttributeIndex()
    {
        return $this->attributeIndex++;
    }
}