-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing doc comments. Remove unused Event class.
- Loading branch information
1 parent
9623fa1
commit 47a9b4d
Showing
9 changed files
with
91 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,46 @@ | ||
<?php | ||
/** | ||
* Pinterest tracking category data class. | ||
* | ||
* @package Pinterest_For_WooCommerce/Classes/ | ||
* @version 1.0.0 | ||
*/ | ||
|
||
namespace Automattic\WooCommerce\Pinterest\Tracking\Data; | ||
|
||
use Automattic\WooCommerce\Pinterest\Tracking\Data; | ||
|
||
/** | ||
* Category data class to hold category name and id data. | ||
*/ | ||
class Category extends Data { | ||
|
||
private $product_category; | ||
private $id; | ||
|
||
private $category_name; | ||
private $name; | ||
|
||
public function __construct( $event_id, $product_category, $category_name ) { | ||
/** | ||
* @param string $event_id - A unique event id. | ||
* @param string $id - Product category id. | ||
* @param string $name - Product category name. | ||
*/ | ||
public function __construct( $event_id, $id, $name ) { | ||
parent::__construct( $event_id ); | ||
$this->product_category = $product_category; | ||
$this->category_name = $category_name; | ||
$this->id = $id; | ||
$this->name = $name; | ||
} | ||
|
||
/** | ||
* @return mixed | ||
*/ | ||
public function getProductCategory() { | ||
return $this->product_category; | ||
public function getId() { | ||
return $this->id; | ||
} | ||
|
||
/** | ||
* @return mixed | ||
*/ | ||
public function getCategoryName() { | ||
return $this->category_name; | ||
public function getName() { | ||
return $this->name; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters