Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
2 / 2
CRAP
100.00% covered (success)
100.00%
3 / 3
TermIdTrait
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
2 / 2
2
100.00% covered (success)
100.00%
3 / 3
 getTermId
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 setTermId
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
2 / 2
<?php
declare(strict_types=1);
namespace Korobochkin\WPKit\DataComponents\Traits;
trait TermIdTrait
{
    /**
     * @var int Unique Term ID.
     */
    protected $termId;
    /**
     * Returns the term ID.
     *
     * @return int Post ID.
     */
    public function getTermId()
    {
        return $this->termId;
    }
    /**
     * Set the term ID.
     *
     * @param int $id
     *
     * @return $this For chain calls.
     */
    public function setTermId($id)
    {
        $this->termId = $id;
        return $this;
    }
}