Skip to content

Instantly share code, notes, and snippets.

@danjohnson95
Last active May 4, 2017 09:03
Show Gist options
  • Save danjohnson95/baa8c2ce179cac743acbd8e3665b2c99 to your computer and use it in GitHub Desktop.
Save danjohnson95/baa8c2ce179cac743acbd8e3665b2c99 to your computer and use it in GitHub Desktop.
<?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