Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created August 7, 2019 18:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/406a7e35cd92bb1ee066bd6ad1620d1d to your computer and use it in GitHub Desktop.
Save parzibyte/406a7e35cd92bb1ee066bd6ad1620d1d to your computer and use it in GitHub Desktop.
<?php
class Producto{
private $codigo;
private $descripcion;
private $precio;
public function __construct($codigo, $descripcion, $precio){
$this->codigo = $codigo;
$this->descripcion = $descripcion;
$this->precio = $precio;
}
public function getCodigo(){
return $this->codigo;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment