Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add php doc #7

Merged
merged 1 commit into from
Jul 27, 2022
Merged

add php doc #7

merged 1 commit into from
Jul 27, 2022

Conversation

Traineratwot
Copy link
Contributor

Я конечно понимаю что лень прописывать одинаковые функции но хотя-бы объявить их надо, иначе не будут работать подсказки в IDE.
p.s.
__call - ЗЛО

Я конечно понимаю что лень прописывать одинаковые функции но хотя-бы объявить их надо, иначе не будут работать подсказки в IDE.
p.s. 
__call - ЗЛО
@Traineratwot
Copy link
Contributor Author

UPD

	/**
	 * @method $this model(mixed $value)
	 * @method $this series(mixed $value)
	 * @method $this author(mixed $value)
	 * @method $this vendorCode(mixed $value)
	 * @method $this barcode(mixed $value)
	 * @method $this vendor(mixed $value)
	 * @method $this expiry(mixed $value)
	 * @method $this rec(mixed $value)
	 * @method $this typePrefix(mixed $value)
	 * @method $this country_of_origin(mixed $value)
	 * @method $this ISBN(mixed $value)
	 * @method $this volume(mixed $value)
	 * @method $this part(mixed $value)
	 * @method $this language(mixed $value)
	 * @method $this binding(mixed $value)
	 * @method $this table_of_contents(mixed $value)
	 * @method $this performed_by(mixed $value)
	 * @method $this performance_type(mixed $value)
	 * @method $this storage(mixed $value)
	 * @method $this format(mixed $value)
	 * @method $this recording_length(mixed $value)
	 * @method $this artist(mixed $value)
	 * @method $this media(mixed $value)
	 * @method $this starring(mixed $value)
	 * @method $this director(mixed $value)
	 * @method $this originalName(mixed $value)
	 * @method $this country(mixed $value)
	 * @method $this worldRegion(mixed $value)
	 * @method $this region(mixed $value)
	 * @method $this dataTour(mixed $value)
	 * @method $this hotel_stars(mixed $value)
	 * @method $this room(mixed $value)
	 * @method $this meal(mixed $value)
	 * @method $this price_min(mixed $value)
	 * @method $this price_max(mixed $value)
	 * @method $this options(mixed $value)
	 * @method $this hall(mixed $value)
	 * @method $this hall_part(mixed $value)
	 * @method $this is_premiere(mixed $value)
	 * @method $this is_kids(mixed $value)
	 * @method $this vat(mixed $value)
	 * @method $this downloadable(mixed $value)
	 * @method $this adult(mixed $value)
	 * @method $this store(mixed $value)
	 * @method $this pickup(mixed $value)
	 * @method $this delivery(mixed $value)
	 * @method $this manufacturer_warranty(mixed $value)
	 * @method $this origin(mixed $value)
	 * @method $this warranty(mixed $value)
	 * @method $this sale(mixed $value)
	 * @method $this sales_notes(mixed $value)
	 * @method $this pic(mixed $value)
	 * @method $this picture(mixed $value)
	 * @method $this pages(mixed $value)
	 * @method $this page_extent(mixed $value)
	 * @method $this contents(mixed $value)
	 * @method $this performer(mixed $value)
	 * @method $this performance(mixed $value)
	 * @method $this length(mixed $value)
	 * @method $this stars(mixed $value)
	 * @method $this priceMin(mixed $value)
	 * @method $this priceMax(mixed $value)
	 * @method $this hallPart(mixed $value)
	 * @method $this premiere(mixed $value)
	 * @method $this kids(mixed $value)
	 * @method $this param(string $key, mixed $value)
	 */

@notdest
Copy link
Owner

notdest commented Jul 27, 2022

Ладно, пусть будет.
Я его вообще в саблиме писал. 7 лет назад возможно и шторм был плох.
Технически оно не особо нужно - берёшь пример под нужный тип и удаляешь лишнее, там все методы есть.
Вариант с пхп-доком не отработает тот момент, что у разных типов товаров разный набор полей.

@notdest notdest merged commit 5f63b8c into notdest:master Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants