renoki-co/php-k8s

View on GitHub
src/Traits/Resource/HasAccessModes.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace RenokiCo\PhpK8s\Traits\Resource;

trait HasAccessModes
{
    use HasSpec;

    /**
     * Set the access modes.
     *
     * @param  array  $accessModes
     * @return $this
     */
    public function setAccessModes(array $accessModes)
    {
        return $this->setSpec('accessModes', $accessModes);
    }

    /**
     * Get the access modes.
     *
     * @return array
     */
    public function getAccessModes(): array
    {
        return $this->getSpec('accessModes', []);
    }
}