theme_name = $theme_name; if ( empty( $parent_theme_name ) ) { $parent_theme_name = null; } $this->parent_theme_name = $parent_theme_name; } /** * @return string */ public function get_theme_name() { return $this->theme_name; } /** * @return string */ public function get_parent_theme_name() { return $this->parent_theme_name; } /** * @return string */ public function get_author() { return $this->author; } /** * @param string $author */ public function set_author( $author ) { $this->author = $author; } /** * @return array */ public function to_array() { return array( 'theme_name' => $this->get_theme_name(), 'parent_theme_name' => $this->get_parent_theme_name(), 'author' => $this->get_author(), ); } }