Timber\Term::__construct PHP Метод

__construct() публичный Метод

public __construct ( integer $tid = null, string $tax = '' )
$tid integer
$tax string
    public function __construct($tid = null, $tax = '')
    {
        if ($tid === null) {
            $tid = $this->get_term_from_query();
        }
        if (strlen($tax)) {
            $this->taxonomy = $tax;
        }
        $this->init($tid);
    }