Last active
May 4, 2017 09:03
-
-
Save danjohnson95/baa8c2ce179cac743acbd8e3665b2c99 to your computer and use it in GitHub Desktop.
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
<?php namespace App\Contracts; | |
interface ProductDataInterface | |
{ | |
/** | |
* Sets the title of the product | |
* @param string $title | |
* @return $this | |
*/ | |
public function setTitle($title); | |
/** | |
* Sets the price of the product | |
* @param float $price | |
* @return $this | |
*/ | |
public function setPrice($price); | |
/** | |
* Saves the instance | |
* @return bool | |
*/ | |
public function save(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment