src/PostType/PostType.php
public function status($status, array $args = []): PostTypeInterface
    {
        if (is_array($status)) {
            foreach ($status as $key => $params) {
                if (is_int($key)) {
                    $this->status($params);
                } elseif (is_string($key) && is_array($params)) {
                    $this->status($key, $params);
                }
            }

            return $this;
        }

        $this->prepareStatus($status, $args);

        return $this;
    }
public function status($status, array $args = []): PostTypeInterface
    {
        if (is_array($status)) {
            foreach ($status as $key => $params) {
                if (is_int($key)) {
                    $this->status($params);
                } elseif (is_string($key) && is_array($params)) {
                    $this->status($key, $params);
                }
            }

            return $this;
        }

        $this->prepareStatus($status, $args);

        return $this;
    }
public function status ( $ status , array $ args = [ ] ) : PostTypeInterface { if ( is_array ( $ status ) ) { foreach ( $ status as $ key => $ params ) { if ( is_int ( $ key ) ) { $ this -> status ( $ params ) ; } elseif ( is_string ( $ key ) && is_array ( $ params ) ) { $ this -> status ( $ key , $ params ) ; } } return $ this ; } $ this -> prepareStatus ( $ status , $ args ) ; return $ this ; }
Set post type custom status.

@param array|string $status
@param array        $args

@return PostTypeInterface
Set post type custom status .