codes in app/models/UsersBadges.php

In github phalcon/forum, some codes like these,why? thanks in advance.

else {
$activity->type = 'B';
$activity->postsid = 1;
$activity->posts
replies_id = 1;
}

What is your exact question? Those are objects with properties being set for whatever reason / application context - business logic.



1.2k
edited Jan '17

In app/models/UsersBadges.php, why did they set $activity->posts_id = 1?
why is it 1?
thank you very much in advance.

What is your exact question? Those are objects with properties being set for whatever reason / application context - business logic.