AOEpeople/StackFormation

View on GitHub
src/AwsInspector/Model/Iam/User.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace AwsInspector\Model\Iam;

/**
 * Class User
 *
 * @method getPath()
 * @method getUserName()
 * @method getUserId()
 * @method getArn()
 * @method getCreateDate()
 */
class User extends \AwsInspector\Model\AbstractResource
{

    public function getAccountId() {
        $parts = explode(':', $this->getArn());
        return $parts[4];
    }

}