public function names($names)
    {
        // only the post type name is passed
        if (is_string($names)) {
            $names = ['name' => $names];
        }

        // set the names array
        $this->names = $names;

        // create names for the PostType
        $this->createNames();

        return $this;
    }
public function names($names)
    {
        // only the post type name is passed
        if (is_string($names)) {
            $names = ['name' => $names];
        }

        // set the names array
        $this->names = $names;

        // create names for the PostType
        $this->createNames();

        return $this;
    }
public function names ( $ names ) { // only the post type name is passed if ( is_string ( $ names ) ) { $ names = [ 'name' => $ names ] ; } // set the names array $ this -> names = $ names ; // create names for the PostType $ this -> createNames ( ) ; return $ this ; }
Set the names for the PostType
@param  mixed $names A string for the name, or an array of names
@return $this
Set the names for the PostType