Recipe
extends Message
in package
Generated from protobuf message <code>php_bff.bff.Recipe</code>
Table of Contents
Properties
- $category : mixed
- Generated from protobuf field <code>.php_bff.bff.Category category = 6;</code>
- $code : mixed
- Generated from protobuf field <code>string code = 1;</code>
- $content : mixed
- Solo estará relleno en la peticion GetRecipe.
- $difficulty : mixed
- Generated from protobuf field <code>string difficulty = 9;</code>
- $image : mixed
- Generated from protobuf field <code>.php_bff.bff.Image image = 5;</code>
- $ingredients : mixed
- Solo estará relleno en la peticion GetRecipe.
- $people : mixed
- Generated from protobuf field <code>int64 people = 8;</code>
- $slug : mixed
- Generated from protobuf field <code>string slug = 3;</code>
- $title : mixed
- Generated from protobuf field <code>string title = 2;</code>
- $type : mixed
- Generated from protobuf field <code>.php_bff.bff.Type type = 7;</code>
- $user : mixed
- Generated from protobuf field <code>.php_bff.bff.User user = 4;</code>
Methods
- __construct() : mixed
- Constructor.
- clearCategory() : mixed
- clearImage() : mixed
- clearType() : mixed
- clearUser() : mixed
- getCategory() : Category|null
- Generated from protobuf field <code>.php_bff.bff.Category category = 6;</code>
- getCode() : string
- Generated from protobuf field <code>string code = 1;</code>
- getContent() : string
- Solo estará relleno en la peticion GetRecipe.
- getDifficulty() : string
- Generated from protobuf field <code>string difficulty = 9;</code>
- getImage() : Image|null
- Generated from protobuf field <code>.php_bff.bff.Image image = 5;</code>
- getIngredients() : string
- Solo estará relleno en la peticion GetRecipe.
- getPeople() : int|string
- Generated from protobuf field <code>int64 people = 8;</code>
- getSlug() : string
- Generated from protobuf field <code>string slug = 3;</code>
- getTitle() : string
- Generated from protobuf field <code>string title = 2;</code>
- getType() : Type|null
- Generated from protobuf field <code>.php_bff.bff.Type type = 7;</code>
- getUser() : User|null
- Generated from protobuf field <code>.php_bff.bff.User user = 4;</code>
- hasCategory() : mixed
- hasImage() : mixed
- hasType() : mixed
- hasUser() : mixed
- setCategory() : $this
- Generated from protobuf field <code>.php_bff.bff.Category category = 6;</code>
- setCode() : $this
- Generated from protobuf field <code>string code = 1;</code>
- setContent() : $this
- Solo estará relleno en la peticion GetRecipe.
- setDifficulty() : $this
- Generated from protobuf field <code>string difficulty = 9;</code>
- setImage() : $this
- Generated from protobuf field <code>.php_bff.bff.Image image = 5;</code>
- setIngredients() : $this
- Solo estará relleno en la peticion GetRecipe.
- setPeople() : $this
- Generated from protobuf field <code>int64 people = 8;</code>
- setSlug() : $this
- Generated from protobuf field <code>string slug = 3;</code>
- setTitle() : $this
- Generated from protobuf field <code>string title = 2;</code>
- setType() : $this
- Generated from protobuf field <code>.php_bff.bff.Type type = 7;</code>
- setUser() : $this
- Generated from protobuf field <code>.php_bff.bff.User user = 4;</code>
Properties
$category
Generated from protobuf field <code>.php_bff.bff.Category category = 6;</code>
protected
mixed
$category
= null
$code
Generated from protobuf field <code>string code = 1;</code>
protected
mixed
$code
= ''
$content
Solo estará relleno en la peticion GetRecipe.
protected
mixed
$content
= ''
Generated from protobuf field string content = 11;
$difficulty
Generated from protobuf field <code>string difficulty = 9;</code>
protected
mixed
$difficulty
= ''
$image
Generated from protobuf field <code>.php_bff.bff.Image image = 5;</code>
protected
mixed
$image
= null
$ingredients
Solo estará relleno en la peticion GetRecipe.
protected
mixed
$ingredients
= ''
Generated from protobuf field string ingredients = 10;
$people
Generated from protobuf field <code>int64 people = 8;</code>
protected
mixed
$people
= 0
$slug
Generated from protobuf field <code>string slug = 3;</code>
protected
mixed
$slug
= ''
$title
Generated from protobuf field <code>string title = 2;</code>
protected
mixed
$title
= ''
$type
Generated from protobuf field <code>.php_bff.bff.Type type = 7;</code>
protected
mixed
$type
= null
$user
Generated from protobuf field <code>.php_bff.bff.User user = 4;</code>
protected
mixed
$user
= null
Methods
__construct()
Constructor.
public
__construct([array<string|int, mixed> $data = NULL ]) : mixed
Parameters
- $data : array<string|int, mixed> = NULL
-
{ Optional. Data for populating the Message object.
@type string $code @type string $title @type string $slug @type \Php_bff\Bff\User $user @type \Php_bff\Bff\Image $image @type \Php_bff\Bff\Category $category @type \Php_bff\Bff\Type $type @type int|string $people @type string $difficulty @type string $ingredients Solo estará relleno en la peticion GetRecipe. @type string $content Solo estará relleno en la peticion GetRecipe.}
clearCategory()
public
clearCategory() : mixed
clearImage()
public
clearImage() : mixed
clearType()
public
clearType() : mixed
clearUser()
public
clearUser() : mixed
getCategory()
Generated from protobuf field <code>.php_bff.bff.Category category = 6;</code>
public
getCategory() : Category|null
Return values
Category|nullgetCode()
Generated from protobuf field <code>string code = 1;</code>
public
getCode() : string
Return values
stringgetContent()
Solo estará relleno en la peticion GetRecipe.
public
getContent() : string
Generated from protobuf field string content = 11;
Return values
stringgetDifficulty()
Generated from protobuf field <code>string difficulty = 9;</code>
public
getDifficulty() : string
Return values
stringgetImage()
Generated from protobuf field <code>.php_bff.bff.Image image = 5;</code>
public
getImage() : Image|null
Return values
Image|nullgetIngredients()
Solo estará relleno en la peticion GetRecipe.
public
getIngredients() : string
Generated from protobuf field string ingredients = 10;
Return values
stringgetPeople()
Generated from protobuf field <code>int64 people = 8;</code>
public
getPeople() : int|string
Return values
int|stringgetSlug()
Generated from protobuf field <code>string slug = 3;</code>
public
getSlug() : string
Return values
stringgetTitle()
Generated from protobuf field <code>string title = 2;</code>
public
getTitle() : string
Return values
stringgetType()
Generated from protobuf field <code>.php_bff.bff.Type type = 7;</code>
public
getType() : Type|null
Return values
Type|nullgetUser()
Generated from protobuf field <code>.php_bff.bff.User user = 4;</code>
public
getUser() : User|null
Return values
User|nullhasCategory()
public
hasCategory() : mixed
hasImage()
public
hasImage() : mixed
hasType()
public
hasType() : mixed
hasUser()
public
hasUser() : mixed
setCategory()
Generated from protobuf field <code>.php_bff.bff.Category category = 6;</code>
public
setCategory(Category $var) : $this
Parameters
- $var : Category
Return values
$thissetCode()
Generated from protobuf field <code>string code = 1;</code>
public
setCode(string $var) : $this
Parameters
- $var : string
Return values
$thissetContent()
Solo estará relleno en la peticion GetRecipe.
public
setContent(string $var) : $this
Generated from protobuf field string content = 11;
Parameters
- $var : string
Return values
$thissetDifficulty()
Generated from protobuf field <code>string difficulty = 9;</code>
public
setDifficulty(string $var) : $this
Parameters
- $var : string
Return values
$thissetImage()
Generated from protobuf field <code>.php_bff.bff.Image image = 5;</code>
public
setImage(Image $var) : $this
Parameters
- $var : Image
Return values
$thissetIngredients()
Solo estará relleno en la peticion GetRecipe.
public
setIngredients(string $var) : $this
Generated from protobuf field string ingredients = 10;
Parameters
- $var : string
Return values
$thissetPeople()
Generated from protobuf field <code>int64 people = 8;</code>
public
setPeople(int|string $var) : $this
Parameters
- $var : int|string
Return values
$thissetSlug()
Generated from protobuf field <code>string slug = 3;</code>
public
setSlug(string $var) : $this
Parameters
- $var : string
Return values
$thissetTitle()
Generated from protobuf field <code>string title = 2;</code>
public
setTitle(string $var) : $this
Parameters
- $var : string
Return values
$thissetType()
Generated from protobuf field <code>.php_bff.bff.Type type = 7;</code>
public
setType(Type $var) : $this
Parameters
- $var : Type
Return values
$thissetUser()
Generated from protobuf field <code>.php_bff.bff.User user = 4;</code>
public
setUser(User $var) : $this
Parameters
- $var : User